mirror of
https://github.com/apple/swift-log
synced 2026-11-25 03:57:48 +00:00
* naming proposal motivation: intuitive APIs changes: * Logger is the main API users interact with * Logging is the factory from which users get instances of Logger, via Logging.for(identifer) * LogHandler is what logging libraries implement, this is not exposed to users as its boxed in Logger * replace Logging (aka LoggerFactory) factory property with bootstrap(factory) function * rename main module to Logging since its not server only * converge examples into an Examples module open questions: * Logging.make or Logging.for * is Logging.for(object: Any.Type) a good idea? is there a better way to get the FQN for an object?
15 lines
318 B
Swift
15 lines
318 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()
|