Skip to content

Commit

Permalink
opt: 优化输出提示
Browse files Browse the repository at this point in the history
  • Loading branch information
liihuu committed May 28, 2021
1 parent f1b76b9 commit cee261b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const DEV = '__BUILD_ENV__' === 'development'
export function logWarn (api, invalidParam, append = '') {
if (DEV) {
console.log(
'%cklinecharts warning: \n%s%s%s',
'%c😑 klinecharts warning: \n%s%s%s',
'color:#fcaf17;font-weight:bold',
api ? `Call api ${api}${invalidParam || append ? ', ' : '.'}` : '',
invalidParam ? `invalid parameter ${invalidParam}${append ? ', ' : '.'}` : '',
Expand All @@ -41,7 +41,7 @@ export function logWarn (api, invalidParam, append = '') {
export function logError (api, invalidParam, append = '') {
if (DEV) {
console.log(
'%cklinecharts error: \n%s%s%s',
'%c☹️ klinecharts error: \n%s%s%s',
'color:#ed1941;font-weight:bold',
api ? `Call api ${api}${invalidParam || append ? ', ' : '.'},` : '',
invalidParam ? `invalid parameter ${invalidParam}${append ? ', ' : '.'}` : '',
Expand All @@ -56,7 +56,7 @@ export function logError (api, invalidParam, append = '') {
export function logTag () {
if (DEV) {
console.log(
'%c😄 Welcome to klinecharts. Version is __BUILD_VERSION__',
'%c❤️ Welcome to klinecharts. Version is __BUILD_VERSION__',
'border-radius:2px;border:dashed 1px #2196F3;padding:26px 20px;font-size:14px;color:#2196F3'
)
}
Expand Down

0 comments on commit cee261b

Please sign in to comment.