Skip to content

Commit

Permalink
fix: console debug colors
Browse files Browse the repository at this point in the history
Fixes #504
  • Loading branch information
petyosi committed Jan 2, 2022
1 parent 86ea16c commit de2bed3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/loggerSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@ export const loggerSystem = u.system(
const currentLevel = getGlobalThis()['VIRTUOSO_LOG_LEVEL'] ?? u.getValue(logLevel)
if (level >= currentLevel) {
// eslint-disable-next-line no-console
console[CONSOLE_METHOD_MAP[level]]('%creact-virtuoso: %c%s %o', 'color: #0253b3; font-weight: bold', 'color: black', label, message)
console[CONSOLE_METHOD_MAP[level]](
'%creact-virtuoso: %c%s %o',
'color: #0253b3; font-weight: bold',
'color: initial',
label,
message
)
}
})

Expand Down

0 comments on commit de2bed3

Please sign in to comment.