Socket
Socket
Sign inDemoInstall

electron-log

Package Overview
Dependencies
Maintainers
1
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-log - npm Package Compare versions

Comparing version 2.2.13 to 2.2.14

52

electron-log.d.ts

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc