Skip to content

Commit

Permalink
Added exports and cleaned jsdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
TrueBoxGuy committed Sep 2, 2017
1 parent c4a9726 commit 48f7043
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/TrueLogger.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ class TrueLogger {
* constructor - Makes a new logger
*
* @param {string} timestampFormat A moment timestamp format.
*
*/
constructor(timestampFormat) {
this.timestampFormat = timestampFormat;
Expand All @@ -27,7 +26,6 @@ class TrueLogger {
* info - Logs something in the info category.
*
* @param {...string} input A spread of strings that you want to log.
*
*/
info(...input) {
log("Info", this.getTimeStamp(), ...input);
Expand All @@ -38,3 +36,5 @@ class TrueLogger {
function log(category, timestamp, ...input) {
console.log(chalk `{grey [${category.toUpperCase()}]} {green ${timestamp}}: ${input.join(" ")}`)
}

module.exports = TrueLogger;

0 comments on commit 48f7043

Please sign in to comment.