mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 04:10:32 +00:00
14 lines
292 B
TypeScript
14 lines
292 B
TypeScript
import winston from 'winston';
|
|
|
|
const transports = {
|
|
console: new winston.transports.Console({ level: 'warn' }),
|
|
file: new winston.transports.File({ filename: 'stdout.log' }),
|
|
};
|
|
|
|
export default winston.createLogger({
|
|
transports: [
|
|
transports.console,
|
|
transports.file,
|
|
],
|
|
});
|