Options for the logger.

interface Options {
    namespace?: string;
    should_use_emoji_for_severity?: boolean;
    should_validate_log_statements?: boolean;
}

Properties

namespace?: string

The namespace for the debug logger (unstructured logging). This option has no effect when using structured logging.

undefined

should_use_emoji_for_severity?: boolean

Whether to use an emoji for the severity level (unstructured logging). This option has no effect when using structured logging.

true

should_validate_log_statements?: boolean

Whether each log statement should be validated against a Joi schema.

true