Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: src/logging/LoggerFactory.ts
- IDEA additional info:
- Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
- <+>UTF-8
- ===================================================================
- --- src/logging/LoggerFactory.ts (revision d198220cb49a5865f647d7b74ca1a078163dac81)
- +++ src/logging/LoggerFactory.ts (revision d198220cb49a5865f647d7b74ca1a078163dac81)
- @@ -0,0 +1,20 @@
- +import * as winston from "winston";
- +
- +export class LoggerFactory {
- + /**
- + * Creates a new Logger with specified name and standard transports
- + * and their configuration.
- + *
- + * @param name name of the new logger
- + */
- + static getLogger(name: string) {
- + return winston.createLogger({
- + transports: [
- + new winston.transports.Console({
- + format: winston.format.simple()
- + })
- + ]
- + });
- +
- + }
- +}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement