1.0.5 • Published 3 years ago
@mamphis/express-utils v1.0.5
@mamphis/express-utils
This package contains useful utilities for express.
It is not intended for public usage, but for helper funtions which i use every time.
API
Logger
Logger
logger(loggerOptions?: LoggerOptions): express.Handler;Default options are provided.
Default output: console.
Default format: DD.MM.YY HH:mm:ss.SSS
LoggingOutput
type LoggingOutput = {
    log(message?: any, ...optionalParams: any[]): void;
}LoggerOptions
type LoggingOutput = {
    output: LoggingOutput;
    format: string;
}LoggingOutput.output The output channel to write the logging message to.
LoggingOutput.format The datetime format to display in the logging message