new(all): #156 and logo enhancement.
This commit is contained in:
parent
66757ed4cc
commit
be1e691f1c
2 changed files with 5 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "botlib",
|
"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)",
|
"description": "General Bot base library for building Node.js TypeScript Apps packages (.gbapp) and Libray packages (.gblib)",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index",
|
"types": "dist/index",
|
||||||
|
|
|
||||||
|
|
@ -63,10 +63,12 @@ const logger = createLogger({
|
||||||
format: format.combine(
|
format: format.combine(
|
||||||
format.colorize(),
|
format.colorize(),
|
||||||
format.simple(),
|
format.simple(),
|
||||||
format.label({ label: 'GeneralBots' }),
|
format.label({ label: 'GB' }),
|
||||||
format.timestamp(),
|
format.timestamp(),
|
||||||
format.printf(nfo => {
|
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,
|
levels: config.levels,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue