mirror of
https://github.com/apple/swift-log
synced 2026-11-24 03:47:49 +00:00
motivation: support situations when users want to multiplex to multiple logging implementations changes: * add MultiplexLogging (factory) and MUXLogHandler (implementation), allowing user to plug in multiple logging implementations * add tests and examples to demonstrate the functionality
19 lines
379 B
Swift
19 lines
379 B
Swift
print("##### explicit logger passing #####")
|
|
ExplicitContextPassingExample.main()
|
|
|
|
print()
|
|
print("##### one global logger #####")
|
|
OneGlobalLoggerExample.main()
|
|
|
|
print()
|
|
print("##### logger per sub-system #####")
|
|
LoggerPerSubsystemExample.main()
|
|
|
|
print()
|
|
print("##### other random examples #####")
|
|
RandomExample.main()
|
|
|
|
print()
|
|
print("##### mux examples #####")
|
|
MUXExample.main()
|