Class: ConsoleLogger

ConsoleLogger


new ConsoleLogger()

Extends

Methods


alert(message, data, channel)

Parameters:
Name Type Default Description
message string
data any null
channel string
Inherited From:

canLog(severity)

Parameters:
Name Type Description
severity Severity
Inherited From:
Returns:
boolean

critical(message, data, channel)

Parameters:
Name Type Default Description
message string
data any null
channel string
Inherited From:

debug(message, data, channel)

Parameters:
Name Type Default Description
message string
data any null
channel string
Inherited From:

emergency(message, data, channel)

Parameters:
Name Type Default Description
message string
data any null
channel string
Inherited From:

error(message, data, channel)

Parameters:
Name Type Default Description
message string
data any null
channel string
Inherited From:

getChannel()

Inherited From:
Returns:
Type
string

getLevel()

Inherited From:
Returns:
number

getUser()

Inherited From:
Returns:
Type
string

info(message, data, channel)

Parameters:
Name Type Default Description
message string
data any null
channel string
Inherited From:

isEnabled()

Inherited From:
Returns:
enabled
Type
boolean

log(message, data, level, channel)

Parameters:
Name Type Default Description
message string
data mixed null
level int | Severity , standard RFC3164 code (https://tools.ietf.org/html/rfc3164)
channel string
Inherited From:

notice(message, data, channel)

Parameters:
Name Type Default Description
message string
data any null
channel string
Inherited From:

setChannel(channel)

Parameters:
Name Type Description
channel string
Inherited From:

setColor({Boolean})

Parameters:
Name Type Description
{Boolean} val
Inherited From:

setEnabled(enabled)

Parameters:
Name Type Description
enabled boolean
Inherited From:

setFormatter(formatter)

Parameters:
Name Type Description
formatter Formatter
Inherited From:

setLevel(level)

Parameters:
Name Type Description
level number
Inherited From:

setUser(user)

Parameters:
Name Type Description
user string
Inherited From:

showLineNumbers(show)

Parameters:
Name Type Description
show boolean
Inherited From:

warning(message, data, channel)

Parameters:
Name Type Default Description
message string
data any null
channel string
Inherited From: