Skip to content

Commit

Permalink
new(all): #156 and logo enhancement.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Feb 24, 2023
1 parent 66757ed commit be1e691
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "botlib",
"version": "3.0.2",
"version": "3.0.5",
"description": "General Bot base library for building Node.js TypeScript Apps packages (.gbapp) and Libray packages (.gblib)",
"main": "dist/index.js",
"types": "dist/index",
Expand Down
6 changes: 4 additions & 2 deletions src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,12 @@ const logger = createLogger({
format: format.combine(
format.colorize(),
format.simple(),
format.label({ label: 'GeneralBots' }),
format.label({ label: 'GB' }),
format.timestamp(),
format.printf(nfo => {
return `${nfo.timestamp} [${nfo.label}] ${nfo.level}: ${nfo.message}`;
let message = `${nfo.timestamp} ${nfo.label} ${nfo.level} ${nfo.message}`;
message = message.replace(/\-|\.|\d\d\dZ|\:/gi, '' );
return message;
})
),
levels: config.levels,
Expand Down

0 comments on commit be1e691

Please sign in to comment.