mirror of
https://github.com/microsoft/TypeScript-Node-Starter.git
synced 2025-11-09 00:37:27 +00:00
fixed some imports
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import * as winston from "winston";
|
||||
import winston from "winston";
|
||||
import { Logger } from "winston";
|
||||
import { ENVIRONMENT } from "./secrets";
|
||||
|
||||
const logger = new (winston.Logger)({
|
||||
const logger = new (Logger)({
|
||||
transports: [
|
||||
new (winston.transports.Console)({ level: process.env.NODE_ENV === "production" ? "error" : "debug" }),
|
||||
new (winston.transports.File)({ filename: "debug.log", level: "debug"})
|
||||
|
||||
Reference in New Issue
Block a user