Skip to content

Commit

Permalink
change: template on browser
Browse files Browse the repository at this point in the history
  • Loading branch information
butthx committed May 18, 2024
1 parent 028318a commit a826804
Show file tree
Hide file tree
Showing 2 changed files with 3 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": "@tgsnake/log",
"version": "1.6.3",
"version": "1.6.4",
"description": "logging framework for tgsnake",
"main": "./lib/index.js",
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/Logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ export class Logger {
let now = new Date();
if (isBrowser) {
return [
`%c(${this._name}) %c${level} - %c${'%o'.repeat(args.length)} %c${now.getDate()}/${now.getMonth() + 1}/${now.getFullYear()} ${now.getHours()}:${now.getMinutes()}:${now.getSeconds()}.${now.getMilliseconds()}`,
`%c${now.getDate()}/${now.getMonth() + 1}/${now.getFullYear()} ${now.getHours()}:${now.getMinutes()}:${now.getSeconds()}.${now.getMilliseconds()} %c(${this._name}) %c${level} %c-`,
`color: ${this._color.date};`,
`color: ${this._color.name};`,
`color: ${this._color[level]};`,
``,
...args,
`color: ${this._color.date};`,
];
}
return [
Expand Down

0 comments on commit a826804

Please sign in to comment.