@pnp/logging
Advanced tools
Comparing version 2.0.0-11 to 2.0.0-12
@@ -1,4 +0,3 @@ | ||
export { Logger } from "./logger"; | ||
export { ConsoleListener, FunctionListener } from "./listeners"; | ||
export * from "./types"; | ||
export * from "./logger"; | ||
export * from "./listeners"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,4 +0,3 @@ | ||
export { Logger } from "./logger"; | ||
export { ConsoleListener, FunctionListener } from "./listeners"; | ||
export * from "./types"; | ||
export * from "./logger"; | ||
export * from "./listeners"; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import { ILogEntry, ILogListener } from "./types"; | ||
import { ILogEntry, ILogListener } from "./logger"; | ||
/** | ||
@@ -3,0 +3,0 @@ * Implementation of LogListener which logs to the console |
@@ -1,2 +0,1 @@ | ||
import { ILogListener, ILogEntry, LogLevel } from "./types"; | ||
/** | ||
@@ -54,2 +53,42 @@ * Class used to subscribe ILogListener and log messages throughout an application | ||
} | ||
/** | ||
* A set of logging levels | ||
*/ | ||
export declare const enum LogLevel { | ||
Verbose = 0, | ||
Info = 1, | ||
Warning = 2, | ||
Error = 3, | ||
Off = 99 | ||
} | ||
/** | ||
* Interface that defines a log entry | ||
* | ||
*/ | ||
export interface ILogEntry { | ||
/** | ||
* The main message to be logged | ||
*/ | ||
message: string; | ||
/** | ||
* The level of information this message represents | ||
*/ | ||
level: LogLevel; | ||
/** | ||
* Any associated data that a given logging listener may choose to log or ignore | ||
*/ | ||
data?: any; | ||
} | ||
/** | ||
* Interface that defines a log listner | ||
* | ||
*/ | ||
export interface ILogListener { | ||
/** | ||
* Any associated data that a given logging listener may choose to log or ignore | ||
* | ||
* @param entry The information to be logged | ||
*/ | ||
log(entry: ILogEntry): void; | ||
} | ||
//# sourceMappingURL=logger.d.ts.map |
@@ -131,2 +131,13 @@ /** | ||
}()); | ||
/** | ||
* A set of logging levels | ||
*/ | ||
export var LogLevel; | ||
(function (LogLevel) { | ||
LogLevel[LogLevel["Verbose"] = 0] = "Verbose"; | ||
LogLevel[LogLevel["Info"] = 1] = "Info"; | ||
LogLevel[LogLevel["Warning"] = 2] = "Warning"; | ||
LogLevel[LogLevel["Error"] = 3] = "Error"; | ||
LogLevel[LogLevel["Off"] = 99] = "Off"; | ||
})(LogLevel || (LogLevel = {})); | ||
//# sourceMappingURL=logger.js.map |
{ | ||
"name": "@pnp/logging", | ||
"version": "2.0.0-11", | ||
"version": "2.0.0-12", | ||
"description": "pnp - light-weight, subscribable logging framework", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
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
14081
9
349