@boost/log
Advanced tools
Comparing version 1.1.12 to 1.1.13
@@ -6,2 +6,14 @@ # Change Log | ||
### 1.1.13 - 2020-04-08 | ||
#### ⚙️ Types | ||
- Add `Loggable` interface. ([d58b7ec](https://github.com/milesj/boost/commit/d58b7ec)) | ||
**Note:** Version bump only for package @boost/log | ||
### 1.1.12 - 2020-03-22 | ||
@@ -8,0 +20,0 @@ |
@@ -1,3 +0,2 @@ | ||
/// <reference types="node" /> | ||
import { Logger, LogLevelLabels } from './types'; | ||
import { Logger, LogLevelLabels, Loggable } from './types'; | ||
export declare const DEFAULT_LABELS: LogLevelLabels; | ||
@@ -8,7 +7,7 @@ export interface LoggerOptions { | ||
/** Writable stream to send `stderr` messages to. */ | ||
stderr?: NodeJS.WriteStream; | ||
stderr?: Loggable; | ||
/** Writable stream to send `stdout` messages to. */ | ||
stdout?: NodeJS.WriteStream; | ||
stdout?: Loggable; | ||
} | ||
export default function createLogger({ labels, stderr, stdout, }?: LoggerOptions): Logger; | ||
//# sourceMappingURL=createLogger.d.ts.map |
@@ -16,2 +16,5 @@ export declare type LogLevel = 'debug' | 'error' | 'log' | 'info' | 'trace' | 'warn'; | ||
} | ||
export interface Loggable { | ||
write(message: string): void; | ||
} | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "@boost/log", | ||
"version": "1.1.12", | ||
"version": "1.1.13", | ||
"description": "Lightweight level based logging system.", | ||
@@ -32,3 +32,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "fe9903f8a80ae0ad19cc9fd9e51ccbd47e94356e" | ||
"gitHead": "d6808ae43c4baeee8522850ffa8faa29784fbe8c" | ||
} |
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
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
15076
153