mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2025-12-06 02:30:47 -08:00
chore: upgrade deps
This commit is contained in:
parent
c79143fd32
commit
3837b16d38
11 changed files with 2342 additions and 1857 deletions
|
|
@ -2,19 +2,14 @@ import { LOG_FOLDER } from '@/constants/appPaths';
|
|||
import winston, { format } from 'winston';
|
||||
import RendererTransport from './rendererTransport';
|
||||
import 'winston-daily-rotate-file';
|
||||
import { levels } from '@/constants/logger';
|
||||
|
||||
export * from './wikiOutput';
|
||||
|
||||
export type ILogLevels = keyof typeof levels;
|
||||
const logger = (
|
||||
process.env.NODE_ENV === 'test'
|
||||
? Object.assign(console, {
|
||||
emerg: console.error.bind(console),
|
||||
alert: console.error.bind(console),
|
||||
crit: console.error.bind(console),
|
||||
warning: console.warn.bind(console),
|
||||
notice: console.log.bind(console),
|
||||
debug: console.log.bind(console),
|
||||
close: () => {},
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue