Skip to content

Commit

Permalink
Merge branch 'release/release/0.13.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
holtwick committed Sep 12, 2023
2 parents bebf38b + 44b2759 commit 3af3599
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "zeed",
"type": "module",
"version": "0.13.6",
"version": "0.13.7",
"description": "🌱 Simple foundation library",
"author": {
"name": "Dirk Holtwick",
Expand Down
8 changes: 4 additions & 4 deletions src/browser/log/log-browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,22 +84,22 @@ export function LoggerBrowserHandler(opt: LogHandlerOptions = {}): LogHandler {
case LogLevelInfo:
if (opt.levelHelper)
args[0] = `I|* ${args[0]}`
console.info(joinLogStrings(...args))
console.info(...joinLogStrings(...args))
break
case LogLevelWarn:
if (opt.levelHelper)
args[0] = `W|** ${args[0]}`
console.warn(joinLogStrings(...args))
console.warn(...joinLogStrings(...args))
break
case LogLevelError:
if (opt.levelHelper)
args[0] = `E|*** ${args[0]}`
console.error(joinLogStrings(...args))
console.error(...joinLogStrings(...args))
break
default:
if (opt.levelHelper)
args[0] = `D| ${args[0]}`
console.debug(joinLogStrings(...args))
console.debug(...joinLogStrings(...args))
break
}
}
Expand Down
8 changes: 4 additions & 4 deletions src/common/log/log-console.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ export function LoggerConsoleHandler(opt: LogHandlerOptions = {}): LogHandler {
const name = msg.name ? `[${msg.name}]` : ''
switch (msg.level) {
case LogLevelInfo:
console.info(joinLogStrings(`I|* ${name}`, ...msg.messages))
console.info(...joinLogStrings(`I|* ${name}`, ...msg.messages))
break
case LogLevelWarn:
console.warn(joinLogStrings(`W|** ${name}`, ...msg.messages))
console.warn(...joinLogStrings(`W|** ${name}`, ...msg.messages))
break
case LogLevelError:
console.error(joinLogStrings(`E|*** ${name}`, ...msg.messages))
console.error(...joinLogStrings(`E|*** ${name}`, ...msg.messages))
break
default:
console.debug(joinLogStrings(`D| ${name}`, ...msg.messages))
console.debug(...joinLogStrings(`D| ${name}`, ...msg.messages))
break
}
}
Expand Down

0 comments on commit 3af3599

Please sign in to comment.