Co-authored-by: Patrick Müller <patrick@mueller-patrick.tech> Reviewed-on: #5 Co-authored-by: Patrick Müller <patrick@plutodev.de> Co-committed-by: Patrick Müller <patrick@plutodev.de>
This commit was merged in pull request #5.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import * as appRoot from "app-root-path";
|
||||
import * as winston from "winston";
|
||||
import * as appRoot from 'app-root-path';
|
||||
import * as winston from 'winston';
|
||||
|
||||
const options = {
|
||||
file_info: {
|
||||
@@ -34,7 +34,7 @@ const options = {
|
||||
handleExceptions: true,
|
||||
json: false,
|
||||
colorize: true
|
||||
},
|
||||
}
|
||||
};
|
||||
const logger: winston.Logger = winston.createLogger({
|
||||
format: winston.format.combine(
|
||||
@@ -47,6 +47,6 @@ const logger: winston.Logger = winston.createLogger({
|
||||
new winston.transports.File(options.file_debug),
|
||||
new winston.transports.Console(options.console)
|
||||
],
|
||||
exitOnError: false, // do not exit on handled exceptions
|
||||
exitOnError: false // do not exit on handled exceptions
|
||||
});
|
||||
export default logger;
|
||||
|
||||
Reference in New Issue
Block a user