createLogger()
Function
createLogger(config:
LoggerCreationConfig
):Logger
Creates a new logger instance with no consumers attached. This is most probably not what you want in 99% of the cases. It is recommended to use the globalLogger for logging, since it has your log consumers attached.
The reason this function is exposed is so ui fragments (think of something like google maps) can use this to have their logs separated. This usecase is rare, but still exists in large business applications.
Source: logger/src/lib/create-logger.ts:20
Parameters
Parameter | Type |
---|---|
config | LoggerCreationConfig |
Returns
Logger