Skip to main content
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.