1
0
Fork
You've already forked CBLogging
0
Custom LogHandler for https://github.com/apple/swift-log
  • Swift 63.3%
  • Shell 36.7%
Find a file
Benedek Kozma 0013c67621
All checks were successful
ci/woodpecker/push/pr-checks Pipeline was successful
Merge pull request 'Remove empty default traits definition' ( #5 ) from remove-empty-default into master
Reviewed-on: #5 
2026年04月28日 09:02:53 +02:00
.vscode Switch to Codeberg 2026年02月13日 21:04:39 +01:00
.woodpecker Switch to Codeberg 2026年02月13日 21:04:39 +01:00
scripts Update from template repository 2026年04月27日 16:52:06 +02:00
Sources/CBLogging Update dependencies, implement new log(event:) function 2026年04月27日 16:52:57 +02:00
Tests/FormatterTests Add SwiftFormat, tidy up LocalizedTimestamp usage 2025年10月08日 16:50:46 +02:00
.editorconfig Add LocalizedTimestamp trait and enable it by default 2025年08月26日 16:06:36 +02:00
.gitignore Switch to Codeberg 2026年02月13日 21:04:39 +01:00
.swiftformat Update from template repository 2026年04月27日 16:52:06 +02:00
LICENSE Initial commit 2025年05月20日 22:34:40 +02:00
Package.resolved Update dependencies, implement new log(event:) function 2026年04月27日 16:52:57 +02:00
Package.swift Remove empty default traits definition 2026年04月27日 20:31:05 +02:00
README.md Add readme with example usage 2025年05月20日 23:06:05 +02:00

Example usage:

import CBLogging
var Log: Logger { CBLogHandler.appLogger }
#if DEBUG
	CBLogHandler.bootstrap(defaultLogLevel: .info, appLogLevel: .debug)
#else
	CBLogHandler.bootstrap(defaultLogLevel: .notice, appLogLevel: .info)
#endif