mirror of
https://github.com/apple/swift-log
synced 2026-11-28 04:14:20 +00:00
refactor examples and remove dependecy on foundation
motivation: * due to the low level nature of the library we prefer not to force-load foundation * help reviewers diffrentiate between examples of usage vs implementation, and add more realistic usage and implementations examples changes: * remove foundation from Logging module, replace with c based locks and time functions * rewrite usage examples to be more realistic * add example of an implementation that writes to files * add example of an implementation that is config driven * rename warn -> warning
This commit is contained in:
1 parent
0f23cda751
commit
9027df5f03
25 files changed
+858
-381
No files matched your search
@@ -0,0 +1,19 @@
|
||||
print()
|
||||
print("##### global logger based system #####")
|
||||
GlobalLoggerBasedSystem.main()
|
||||
|
||||
print()
|
||||
print("##### local logger based system #####")
|
||||
LocalLoggerBasedSystem.main()
|
||||
|
||||
print()
|
||||
print("##### context based system #####")
|
||||
ContextBasedSystem.main()
|
||||
|
||||
print()
|
||||
print("##### multiplexiing to multiple logging implementations #####")
|
||||
MUXExample.main()
|
||||
|
||||
print()
|
||||
print("##### config based logging implementations #####")
|
||||
ConfigExample.main()
|
||||
Reference in new issue
Block a user