electron-log
Advanced tools
Comparing version 5.1.2 to 5.1.4
{ | ||
"name": "electron-log", | ||
"version": "5.1.2", | ||
"version": "5.1.4", | ||
"description": "Just a simple logging module for your Electron application", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -156,2 +156,6 @@ # electron-log | ||
#### Third-party transports | ||
- [Datadog](https://github.com/theogravity/electron-log-transport-datadog) | ||
### Overriding console.log | ||
@@ -158,0 +162,0 @@ |
@@ -128,4 +128,9 @@ 'use strict'; | ||
function readAllLogs({ fileFilter = (f) => f.endsWith('.log') } = {}) { | ||
initializeOnFirstAccess(); | ||
const logsPath = path.dirname(transport.resolvePathFn(pathVariables)); | ||
if (!fs.existsSync(logsPath)) { | ||
return []; | ||
} | ||
return fs.readdirSync(logsPath) | ||
@@ -132,0 +137,0 @@ .map((fileName) => path.join(logsPath, fileName)) |
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
129284
4060
252