EMLog

EMLog

new EMLog(manager)

Source:
EMLog constructor.
Parameters:
Name Type Description
manager Object

Methods

addLogCallback(callback)

Source:
添加日志回调
Parameters:
Name Type Description
callback function 日志回调函数

Debug(info)

Source:
output Debug log
Parameters:
Name Type Description
info String 日志信息

Error(info)

Source:
output Error log
Parameters:
Name Type Description
info String 日志信息

getIsDisplayOnConsole() → {Bool}

Source:
get weather display on console
Returns:
返回日志是否输出到控制台
Type
Bool

getLogLevel() → {Number}

Source:
get log level
Returns:
返回日志等级
Type
Number

Log(info)

Source:
output log
Parameters:
Name Type Description
info String 日志信息

removeLogCallback(callback)

Source:
删除日志回调
Parameters:
Name Type Description
callback function 日志回调函数

setIsDisplayOnConsole(isDisplayOnConsole)

Source:
set weather display on console
Parameters:
Name Type Description
isDisplayOnConsole Bool 日志是否输出到控制台

setLogLevel(level)

Source:
set log level
Parameters:
Name Type Description
level Number 日志等级

Warn(info)

Source:
output Warn log
Parameters:
Name Type Description
info String 日志信息