@4lch4/logger
Advanced tools
Comparing version 1.2.0 to 1.4.0
@@ -13,1 +13,2 @@ import { ILogger, ILoggerOpts } from './interfaces'; | ||
} | ||
export declare const logger: Logger; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Logger = void 0; | ||
exports.logger = exports.Logger = void 0; | ||
const interfaces_1 = require("./interfaces"); | ||
@@ -67,2 +67,3 @@ const lib_1 = require("./lib"); | ||
exports.Logger = Logger; | ||
exports.logger = new Logger(); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import { Level } from "."; | ||
import { Level } from '.'; | ||
export interface ILogger { | ||
@@ -3,0 +3,0 @@ info: (msg: string) => void; |
{ | ||
"name": "@4lch4/logger", | ||
"displayName": "Logger", | ||
"version": "1.2.0", | ||
"version": "1.4.0", | ||
"description": "A small utility for logging to console within NodeJS/TypeScript applications.", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"prepublishonly": "tsc", | ||
"release": "np" | ||
"build": "tsc", | ||
"pretty": "prettier --write . && git add . && git commit -m 'ci(pretty): project prettied'" | ||
}, | ||
@@ -11,0 +11,0 @@ "keywords": [ |
@@ -24,3 +24,3 @@ # @4lch4/logger | ||
> **_NOTE: You can also create new instances throughout your app and it will log to the same files/locations._** | ||
> **_NOTE: You can also create new instances throughout your app and it will log to the same files/locations._** | ||
@@ -27,0 +27,0 @@ ```typescript |
@@ -73,1 +73,3 @@ import { ILogger, ILoggerOpts, Level } from './interfaces' | ||
} | ||
export const logger = new Logger() |
import { Color } from 'chalk' | ||
import { Level } from '.' | ||
export interface IColorOpts { | ||
@@ -6,0 +5,0 @@ [Level.debug]: typeof Color |
@@ -1,2 +0,2 @@ | ||
import { Level } from "." | ||
import { Level } from '.' | ||
@@ -3,0 +3,0 @@ /** |
@@ -10,3 +10,3 @@ import { IColorOpts, LogFormat } from '.' | ||
/** | ||
/** | ||
* An optional field that specifies where to store log files. If this property | ||
@@ -16,2 +16,2 @@ * is left empty, then no files are created and logging only goes to stdout. | ||
logDir?: string | ||
} | ||
} |
export * from './defaults' | ||
export * from './Formatter' | ||
export * from './legacy' | ||
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44974
59
1
687