-
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3.18.4 Disabled logging to file by default.
- Loading branch information
Maigo Erit
committed
May 15, 2021
1 parent
bccbcba
commit 2b3cd2d
Showing
8 changed files
with
71 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,14 @@ | ||
import { getIsLoggingEnabled } from './services/settings.api'; | ||
|
||
export const Logger: any = (window as any).logger; | ||
|
||
const isProd = process.env.NODE_ENV === 'production'; | ||
Logger.transports.console.level = isProd ? 'warn' : 'debug'; | ||
|
||
let isLoggingEnabled = getIsLoggingEnabled(); | ||
|
||
if (isLoggingEnabled) { | ||
Logger.transports.file.level = 'debug'; | ||
} else { | ||
Logger.transports.file.level = false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "tockler", | ||
"version": "3.18.3", | ||
"version": "3.18.4", | ||
"description": "Automatically track applications usage and working time", | ||
"author": "Maigo Erit <[email protected]>", | ||
"license": "GPL-2.0", | ||
|
@@ -31,7 +31,7 @@ | |
"eiphop": "^1.0.13", | ||
"electron-context-menu": "2.3.0", | ||
"electron-is-dev": "^1.2.0", | ||
"electron-log": "^4.3.1", | ||
"electron-log": "^4.3.5", | ||
"electron-store": "6.0.1", | ||
"electron-updater": "4.3.5", | ||
"hazardous": "^0.3.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters