@pnp/logging
Advanced tools
Comparing version 1.3.2 to 2.0.0-0
{ | ||
"name": "@pnp/logging", | ||
"version": "1.3.2", | ||
"version": "2.0.0-0", | ||
"description": "pnp - light-weight, subscribable logging framework", | ||
"main": "./dist/logging.es5.umd.js", | ||
"main": "./index.js", | ||
"typings": "./index", | ||
@@ -21,5 +21,3 @@ "dependencies": { | ||
"url": "git:github.com/pnp/pnpjs" | ||
}, | ||
"module": "./dist/logging.es5.js", | ||
"es2015": "./dist/logging.js" | ||
} | ||
} |
@@ -1,19 +0,7 @@ | ||
import { LogEntry } from "./logentry"; | ||
import { ILogEntry, ILogListener } from "./types"; | ||
/** | ||
* Interface that defines a log listner | ||
* | ||
*/ | ||
export interface LogListener { | ||
/** | ||
* Any associated data that a given logging listener may choose to log or ignore | ||
* | ||
* @param entry The information to be logged | ||
*/ | ||
log(entry: LogEntry): void; | ||
} | ||
/** | ||
* Implementation of LogListener which logs to the console | ||
* | ||
*/ | ||
export declare class ConsoleListener implements LogListener { | ||
export declare class ConsoleListener implements ILogListener { | ||
/** | ||
@@ -24,3 +12,3 @@ * Any associated data that a given logging listener may choose to log or ignore | ||
*/ | ||
log(entry: LogEntry): void; | ||
log(entry: ILogEntry): void; | ||
/** | ||
@@ -37,3 +25,3 @@ * Formats the message | ||
*/ | ||
export declare class FunctionListener implements LogListener { | ||
export declare class FunctionListener implements ILogListener { | ||
private method; | ||
@@ -46,3 +34,3 @@ /** | ||
*/ | ||
constructor(method: (entry: LogEntry) => void); | ||
constructor(method: (entry: ILogEntry) => void); | ||
/** | ||
@@ -53,4 +41,4 @@ * Any associated data that a given logging listener may choose to log or ignore | ||
*/ | ||
log(entry: LogEntry): void; | ||
log(entry: ILogEntry): void; | ||
} | ||
//# sourceMappingURL=listeners.d.ts.map |
@@ -1,4 +0,2 @@ | ||
import { LogListener } from "./listeners"; | ||
import { LogEntry } from "./logentry"; | ||
import { LogLevel } from "./loglevel"; | ||
import { ILogListener, ILogEntry, LogLevel } from "./types"; | ||
/** | ||
@@ -20,7 +18,7 @@ * Class used to subscribe ILogListener and log messages throughout an application | ||
*/ | ||
static subscribe(...listeners: LogListener[]): void; | ||
static subscribe(...listeners: ILogListener[]): void; | ||
/** | ||
* Clears the subscribers collection, returning the collection before modifiction | ||
*/ | ||
static clearSubscribers(): LogListener[]; | ||
static clearSubscribers(): ILogListener[]; | ||
/** | ||
@@ -49,3 +47,3 @@ * Gets the current subscriber count | ||
*/ | ||
static log(entry: LogEntry): void; | ||
static log(entry: ILogEntry): void; | ||
/** | ||
@@ -52,0 +50,0 @@ * Logs an error object to the subscribed listeners |
export { Logger } from "./logger"; | ||
export { LogEntry } from "./logentry"; | ||
export { LogLevel } from "./loglevel"; | ||
export { LogListener, ConsoleListener, FunctionListener } from "./listeners"; | ||
export { ConsoleListener, FunctionListener } from "./listeners"; | ||
export * from "./types"; | ||
//# sourceMappingURL=logging.d.ts.map |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
13587
13
336
1
1