Skip to content

Commit

Permalink
Changed the example's require to fit its new location and made the te…
Browse files Browse the repository at this point in the history
…xt a bit more useful.
  • Loading branch information
TrueBoxGuy committed Sep 3, 2017
1 parent cddc2b9 commit d45ad76
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/test.js
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');

0 comments on commit d45ad76

Please sign in to comment.