@smallstack/common
Advanced tools
Comparing version 0.7.104 to 0.7.105
export declare type LoggerLevel = "info" | "debug" | "error" | "warn"; | ||
export declare class Logger { | ||
static debugMode: boolean; | ||
static instance(): Logger; | ||
static on(level: LoggerLevel, callback: (moduleName: string, message: string, stacktrace?: any) => void): void; | ||
static log(level: LoggerLevel, moduleName: string, message: string, stacktrace?: any): void; | ||
@@ -13,4 +14,24 @@ static info(moduleName: string, message: string, stacktrace?: any): void; | ||
static getDebugModules(): string[]; | ||
static resetDebugModules(): void; | ||
static getLoggerMaxLength(): number; | ||
static setLoggerMaxLength(maxLength: number): void; | ||
debugMode: boolean; | ||
loggerDebugModules: string[]; | ||
loggerMaxLength: number; | ||
loggerCallbacks: { | ||
[level: string]: Array<(moduleName: string, message: string, stacktrace?: any) => void>; | ||
}; | ||
on(level: LoggerLevel, callback: (moduleName: string, message: string, stacktrace?: any) => void): void; | ||
log(level: LoggerLevel, moduleName: string, message: string, stacktrace?: any): void; | ||
info(moduleName: string, message: string, stacktrace?: any): void; | ||
warning(moduleName: string, message: string, stacktrace?: any): void; | ||
error(moduleName: string, message: string, stacktrace?: any): void; | ||
debug(moduleName: string, message: string, stacktrace?: any): void; | ||
loggingModule(level: LoggerLevel, moduleName: string): boolean; | ||
printSmallstackLogo(): void; | ||
addDebugModule(debugModuleName: string): void; | ||
getDebugModules(): string[]; | ||
resetDebugModules(): void; | ||
getLoggerMaxLength(): number; | ||
setLoggerMaxLength(maxLength: number): void; | ||
} |
{ | ||
"name": "@smallstack/common", | ||
"version": "0.7.104", | ||
"version": "0.7.105", | ||
"description": "common functionality for smallstack projects", | ||
@@ -28,3 +28,3 @@ "main": "dist/bundle/smallstack_common.umd.js", | ||
"devDependencies": { | ||
"@smallstack/testing": "^0.1.14", | ||
"@smallstack/testing": "^0.1.15", | ||
"@types/chai": "^4.0.4", | ||
@@ -41,2 +41,3 @@ "@types/mocha": "^2.2.43", | ||
"karma-mocha": "^1.3.0", | ||
"karma-spec-reporter": "0.0.32", | ||
"karma-typescript": "^3.0.12", | ||
@@ -43,0 +44,0 @@ "minimongo": "^4.8.0", |
Sorry, the diff of this file is too big to display
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
377366
1999
21