Skip to content

Commit

Permalink
unify local logformat with gulp
Browse files Browse the repository at this point in the history
  • Loading branch information
steam0r committed Jun 25, 2024
1 parent 0ac5d04 commit 24579dc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions shared/api/utils/shared_logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,14 @@ export default class SharedLogger extends SharedUtil
});
}

_logConsole(initiator, level, context, args)
_logConsole(initiator, level, context, args, dateFormat = "DD-MM-YYYY HH:mm:ss")
{
const dateTime = moment().format("DD-MM-YYYY HH:mm:ss");
let dateTime = moment().format(dateFormat);
if (this._cables && this._cables.isLocal())
{
dateTime = "[" + moment().format("HH:mm:ss") + "]";
}

switch (level)
{
case "uncaught":
Expand Down

0 comments on commit 24579dc

Please sign in to comment.