All checks were successful
Publish Docker Image / Publish Docker Image (push) Successful in 39s
18 lines
729 B
TypeScript
Executable File
18 lines
729 B
TypeScript
Executable File
import { createLogger } from '@redwoodjs/api/logger'
|
|
|
|
/**
|
|
* Creates a logger with RedwoodLoggerOptions
|
|
*
|
|
* These extend and override default LoggerOptions,
|
|
* can define a destination like a file or other supported pino log transport stream,
|
|
* and sets whether or not to show the logger configuration settings (defaults to false)
|
|
*
|
|
* @param RedwoodLoggerOptions
|
|
*
|
|
* RedwoodLoggerOptions have
|
|
* @param {options} LoggerOptions - defines how to log, such as redaction and format
|
|
* @param {string | DestinationStream} destination - defines where to log, such as a transport stream or file
|
|
* @param {boolean} showConfig - whether to display logger configuration on initialization
|
|
*/
|
|
export const logger = createLogger({})
|