Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoggerFactory ¶
LoggerFactory is a factory that can be used to create named loggers using the same aligned configuration and namespace.
func New ¶ added in v0.0.10
func New(structuredLogging, unixTimeStamp, disableColoredLogs bool) LoggerFactory
New creates a new LoggerFactory which then can be used to create configured named loggers (log channels)
Example ¶
// create the factory loggingFactory := New(true, false, false) // create new named logger logger := loggingFactory.NewNamedLogger("MyLogger") logger.Info().Msg("Hello World")
Output:
Click to show internal directories.
Click to hide internal directories.