Console System API

Logger

Other API in Package

Console

Console Webservice

Internal Console

The Logger provides the ability to save detailed log events and view the events in Pal Manager. A Logger requires a Notification to be set up and associated with the runtime Pal, with log levels enabled. If no Notification is set up, Logger.error is always logged. All log events except debug are stored when the method is called. Debug events are stored when the workflow thread ends. All log events are limited to a maximum of 100 events per workflow thread.

Method Summary
int debug(Object debug)

Logs the given message at 'debug' level. Returns the remaining log events for this thread.

int error(Object error)

Logs the given message at 'error' level. Returns the remaining log events for this thread.

int error(Object error, String message)

Logs the given message at 'error' level with the specified message added. Returns the remaining log events for this thread.

int info(Object info)

Logs the given message at 'info' level. Returns the remaining log events for this thread.

boolean isDebugEnabled()

Returns true if this logger is enabled for debug.

boolean isErrorEnabled()

Returns true if this logger is enabled for error.

boolean isInfoEnabled()

Returns true if this logger is enabled for info.

boolean isWarnEnabled()

Returns true if this logger is enabled for warn.

String toString()

Returns a description of this object

int warn(Object error, String message)

Logs the given message at 'warn' level with the specified message added. Returns the remaining log events for this thread.

int warn(Object warn)

Logs the given message at 'warn' level. Returns the remaining log events for this thread.

Method Detail


int debug(Object debug)

Logs the given message at 'debug' level. Returns the remaining log events for this thread.

Parameters:

  • Object   debug

Returns:  int

Since: 10-19-2020

top

int error(Object error)

Logs the given message at 'error' level. Returns the remaining log events for this thread.

Parameters:

  • Object   error

Returns:  int

Since: 10-19-2020

top

int error(Object error, String message)

Logs the given message at 'error' level with the specified message added. Returns the remaining log events for this thread.

Parameters:

  • Object   error
  • String   message

Returns:  int

Since: 10-19-2020

top

int info(Object info)

Logs the given message at 'info' level. Returns the remaining log events for this thread.

Parameters:

  • Object   info

Returns:  int

Since: 10-19-2020

top

boolean isDebugEnabled()

Returns true if this logger is enabled for debug.

Returns:  boolean

Since: 10-19-2020

top

boolean isErrorEnabled()

Returns true if this logger is enabled for error.

Returns:  boolean

Since: 10-19-2020

top

boolean isInfoEnabled()

Returns true if this logger is enabled for info.

Returns:  boolean

Since: 10-19-2020

top

boolean isWarnEnabled()

Returns true if this logger is enabled for warn.

Returns:  boolean

Since: 10-19-2020

top

String toString()

Returns a description of this object

Returns:  String

Since: 10-19-2020

top

int warn(Object error, String message)

Logs the given message at 'warn' level with the specified message added. Returns the remaining log events for this thread.

Parameters:

  • Object   error
  • String   message

Returns:  int

Since: 10-19-2020

top

int warn(Object warn)

Logs the given message at 'warn' level. Returns the remaining log events for this thread.

Parameters:

  • Object   warn

Returns:  int

Since: 10-19-2020

top
Copyright © 2006 - 2024, ContractPal, Inc. All rights reserved. API Date: Nov 18, 2024 01:04 PM