Skip to main content

Pentaho+ documentation has moved!

The new product documentation portal is here. Check it out now at docs.hitachivantara.com

 

Hitachi Vantara Lumada and Pentaho Documentation

Logger

cdf. Logger

Static

This is a static class used for logging messages in the console.

AMD Module

require(["cdf/Logger"], function(Logger) { /* code goes here */ });

Source: Logger.js, line 16

Members

Name Description
loglevel : string

The current log level.

Methods

Name Description
debug(m)

Logs a message at debug level.

error(m)

Logs a message at error level.

exception(m)

Logs a message at exception level.

info(m)

Logs a message at info level.

log(m, type, css)

Logs a message to the console.

warn(m)

Logs a message at warn level.

Members Details

loglevel: string

The current log level.

Source: Logger.js, line 44

Default Value: "debug"

Methods Details

debug(m)

Logs a message at debug level.

Source: Logger.js, line 87

Parameters:
Name Default Value Summary
m : string

Message to log.

error(m)

Logs a message at error level.

Source: Logger.js, line 117

Parameters:
Name Default Value Summary
m : string

Message to log.

exception(m)

Logs a message at exception level.

Source: Logger.js, line 127

Parameters:
Name Default Value Summary
m : string | Object

Message to log or an object containing information about the exception to log.

info(m)

Logs a message at info level.

Source: Logger.js, line 97

Parameters:
Name Default Value Summary
m : string

Message to log.

log(m, type, css)

Logs a message to the console using the specified type log level if it is allowed by the current log level.

Source: Logger.js, line 54

Parameters:
Name Default Value Summary
m : string | Object

Message to log or an object containing information about an exception.

type : string
Optional
"info"

The log level, one of the registered log levels.

css : string
Optional

CSS styling rules for the message.

warn(m)

Logs a message at warn level.

Source: Logger.js, line 107

Parameters:
Name Default Value Summary
m : string

Message to log.