Optional
conf: string | LoggerConfigDesignates error events that might still allow the application to continue running.
Designates very severe error events that will presumably lead the application to abort.
Designates informational messages that highlight the progress of the application at coarse-grained level.
a new StepLogger wrapping this logger.
const logger = new Logger('[main]');
logger.info('creating a step logger');
const step = logger.step('[step]');
step.info('doing something...');
step.finish();
logger.info('after step logger has finished');
// Output:
// [2021-08-31T14:00:00.000Z] INFO: [main] creating a step logger
// [2021-08-31T14:00:00.000Z] INFO: [main]:[step] started
// [2021-08-31T14:00:00.000Z] INFO: [main]:[step] doing something...
// [2021-08-31T14:00:00.000Z] INFO: [main]:[step] finished in 0ms
// [2021-08-31T14:00:00.000Z] INFO: [main] after step logger has finished
Designates finer-grained informational events than the DEBUG.
Designates fine-grained informational events that are most useful to debug an application.