-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from Olian04/dev
Published 4.4.0
- Loading branch information
Showing
16 changed files
with
291 additions
and
343 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const path = require('path'); | ||
|
||
require('..')(console, { | ||
saveToFile: path.join(__dirname, `logs-js/${process.title}-${Date.now()}.log`), | ||
}); | ||
|
||
console.logLevel = 4; | ||
|
||
console.log('this is a log message'); | ||
console.info('this is a info message'); | ||
console.error('this is a error message'); | ||
console.warn('this is a warn message'); | ||
console.debug('this is a debug message'); | ||
console.line('this is a line message'); |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import betterLogging from '..'; | ||
import path from 'path'; | ||
|
||
betterLogging(console, { | ||
saveToFile: path.join(__dirname, `logs-ts/${process.title}-${Date.now()}.log`), | ||
}); | ||
|
||
console.logLevel = 4; | ||
|
||
console.log('this is a log message'); | ||
console.info('this is a info message'); | ||
console.error('this is a error message'); | ||
console.warn('this is a warn message'); | ||
console.debug('this is a debug message'); | ||
console.line('this is a line message'); |
Oops, something went wrong.