mirror of
https://github.com/status-im/codimd.git
synced 2025-01-12 22:54:18 +00:00
ts: lib/logger.js
Signed-off-by: Raccoon <raccoon@hackmd.io>
This commit is contained in:
parent
385ef6940b
commit
2a376db0fc
@ -1,7 +1,10 @@
|
||||
'use strict'
|
||||
const { createLogger, format, transports } = require('winston')
|
||||
import {createLogger, format, transports, Logger} from "winston";
|
||||
|
||||
const logger = createLogger({
|
||||
interface CodiMDLogger extends Logger {
|
||||
stream: any
|
||||
}
|
||||
|
||||
const logger: CodiMDLogger = createLogger({
|
||||
level: 'debug',
|
||||
format: format.combine(
|
||||
format.uncolorize(),
|
||||
@ -24,4 +27,4 @@ logger.stream = {
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = logger
|
||||
export = logger
|
Loading…
x
Reference in New Issue
Block a user