Namespace: log

log

log

Members Show Inherited

staticlog.levelEnum

log级别

staticlog.LEVEL_LOG

显示log, warn, error

staticlog.LEVEL_WARN

显示warn, error

staticlog.LEVEL_ERROR

显示error

staticlog.LEVEL_NONE

不显示log, warn, error

Methods Show Inherited

staticlog.log(){Object}

log,等同 console.log

Returns:
Type Description
Object this

staticlog.warn(){Object}

log,等同 console.log

Returns:
Type Description
Object this

staticlog.error(){Object}

error,等同 console.log

Returns:
Type Description
Object this

staticlog.logOnce(id){Object}

logOnce 相同 id 只 log 一次

Name Type Description
id String
Returns:
Type Description
Object this

staticlog.warnOnce(id){Object}

warnOnce 相同 id 只 once 一次

Name Type Description
id String
Returns:
Type Description
Object this

staticlog.errorOnce(id){Object}

errorOnce 相同 id 只 error 一次

Name Type Description
id String
Returns:
Type Description
Object this