electron-log
Advanced tools
Comparing version 2.2.13 to 2.2.14
@@ -9,20 +9,2 @@ export type LogLevel = "error" | "warn" | "info" | "verbose" | "debug" | | ||
declare interface ITransports { | ||
console: IConsoleTransport; | ||
file: IFileTransport; | ||
logS: ILogSTransport; | ||
rendererConsole: IConsoleTransport; | ||
} | ||
declare interface IElectronLog { | ||
transports: ITransports; | ||
error(...params: any[]): void; | ||
warn(...params: any[]): void; | ||
info(...params: any[]): void; | ||
verbose(...params: any[]): void; | ||
debug(...params: any[]): void; | ||
silly(...params: any[]): void; | ||
log(...params: any[]): void; | ||
} | ||
export interface ILogMessage { | ||
@@ -34,14 +16,15 @@ data: any[]; | ||
export interface IConsoleTransport { | ||
export declare interface ITransport { | ||
(msg: ILogMessage): void; | ||
level: LevelOption; | ||
} | ||
export interface IConsoleTransport extends ITransport { | ||
format: IFormat | string; | ||
} | ||
export interface IFileTransport { | ||
(msg: ILogMessage): void; | ||
export interface IFileTransport extends ITransport { | ||
appName?: string; | ||
file?: string; | ||
format: IFormat | string; | ||
level: LevelOption; | ||
maxSize: number; | ||
@@ -56,13 +39,30 @@ streamConfig?: { | ||
}; | ||
findLogPath(appName: string): string; | ||
findLogPath(appName?: string): string; | ||
} | ||
export interface ILogSTransport { | ||
(msg: ILogMessage): void; | ||
export interface ILogSTransport extends ITransport { | ||
client: object; | ||
depth: number; | ||
level: LevelOption; | ||
url?: string; | ||
} | ||
declare interface ITransports { | ||
console: IConsoleTransport; | ||
file: IFileTransport; | ||
logS: ILogSTransport; | ||
rendererConsole: IConsoleTransport; | ||
[key: string]: ITransport; | ||
} | ||
declare interface IElectronLog { | ||
transports: ITransports; | ||
error(...params: any[]): void; | ||
warn(...params: any[]): void; | ||
info(...params: any[]): void; | ||
verbose(...params: any[]): void; | ||
debug(...params: any[]): void; | ||
silly(...params: any[]): void; | ||
log(...params: any[]): void; | ||
} | ||
export declare function error(...params: any[]): void; | ||
@@ -69,0 +69,0 @@ export declare function warn(...params: any[]): void; |
{ | ||
"name": "electron-log", | ||
"version": "2.2.13", | ||
"version": "2.2.14", | ||
"description": "Just a very simple logging module for your Electron application", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -45,6 +45,8 @@ # electron-log | ||
a message. By default, two transports are active: console and file. | ||
Please be aware that the file log level is 'warn' by default, so info | ||
and debug messages will be filtered. The file path is dependent on the | ||
current platform. | ||
**Please be aware that the file log level is 'warn' by default, so info | ||
and debug messages won't be written to a log file.** | ||
The file path is dependent on the current platform. | ||
Transport config is available only inside the main process. | ||
@@ -51,0 +53,0 @@ |
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
23178
172
563