-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed the example's require to fit its new location and made the te…
…xt a bit more useful.
- Loading branch information
1 parent
cddc2b9
commit d45ad76
Showing
1 changed file
with
4 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
const TrueLogger = require('./classes/TrueLogger'); | ||
const TrueLogger = require('../classes/TrueLogger'); | ||
|
||
//Create a new instance with a moment format | ||
const trueLogger = new TrueLogger('HH:mm:ss'); | ||
|
||
//different types of logs and spread operator | ||
trueLogger.info('Spread', 'test'); | ||
trueLogger.warn('Spread', 'test'); | ||
trueLogger.error('hi', 'you noob'); | ||
trueLogger.debug('hi', 'you noob'); | ||
trueLogger.error('a', 'b', 'c'); | ||
trueLogger.debug(...['a', 'b', 'c']); | ||
|
||
//Create a custom log message | ||
trueLogger.custom('a', 'green', 'hi', 'you noob') | ||
trueLogger.custom('a', 'green', 'custom', 'message'); |