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 4.3.2 to 4.3.3

src/__specs__/catchErrors.spec.js

2

package.json
{
"name": "electron-log",
"version": "4.3.2",
"version": "4.3.3",
"description": "Just a very simple logging module for your Electron application",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -80,7 +80,10 @@ # electron-log

- **fileName**, default 'main.log', 'renderer.log' or 'worker.log'
- **[format](docs/format.md)**, default
`'[{y}-{m}-{d} {h}:{i}:{s}.{ms}] [{level}] {text}'`
- **level**, default 'silly'
- **maxSize** of log file in bytes, 1048576 (1mb) by default.
- **resolvePath** function sets the log path, for example
```js
log.transports.file.resolvePath = () => path.join(APP_DATA, 'logs/main.log');
```

@@ -87,0 +90,0 @@ [Read more about file transport](docs/file.md).

@@ -60,2 +60,8 @@ 'use strict';

/**
* @type {boolean}
* @private
*/
this.hasActiveAsyncWritting = false;
/**
* @type {WriteOptions}

@@ -183,3 +189,3 @@ * @private

if (this.asyncWriteQueue.length < 1) {
if (this.hasActiveAsyncWritting || this.asyncWriteQueue.length < 1) {
return;

@@ -189,4 +195,7 @@ }

var text = this.asyncWriteQueue.shift();
this.hasActiveAsyncWritting = true;
fs.writeFile(this.path, text, this.writeOptions, function (e) {
file.hasActiveAsyncWritting = false;
if (e) {

@@ -193,0 +202,0 @@ file.emit(

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