Module: caf_components/proxy_log

Proxy to access the system logger from application code.

Source:

Extends

Methods

(static) newInstance($, spec, cb)

Factory method to create a proxy to a logger service.

Parameters:
Name Type Description
$ ctxType

A context containing references to other components.

spec specType

Configuration data for this component.

cb cbType

A standard node.js callback returning an error or the new component.

Source:

debug(msg)

Logs msg at DEBUG level.

Parameters:
Name Type Description
msg string

A message to be logged.

Source:

error(msg)

Logs msg at ERROR level.

Parameters:
Name Type Description
msg string

A message to be logged.

Source:

fatal(msg)

Logs msg at FATAL level.

Parameters:
Name Type Description
msg string

A message to be logged.

Source:

info(msg)

Logs msg at INFO level.

Parameters:
Name Type Description
msg string

A message to be logged.

Source:

isActive(candidateLevel) → {boolean}

Checks if a candidate level would log with current settings.

Parameters:
Name Type Description
candidateLevel string

A candidate level.

Source:
Returns:

True if that level is logged.

Type
boolean

trace(msg)

Logs msg at TRACE level.

Parameters:
Name Type Description
msg string

A message to be logged.

Source:

warn(msg)

Logs msg at WARN level.

Parameters:
Name Type Description
msg string

A message to be logged.

Source: