flex.messaging.log
Class Logger

java.lang.Object
  extended by flex.messaging.log.Logger

public class Logger
extends Object

The Logger class is used to log out information. It provides named methods to log information out at the desired level. Each Logger will log information out for a log category that is settable.


Constructor Summary
Logger(String category)
          Constructs a Logger instance that will log information out to the specified category.
 
Method Summary
 void debug(String message)
          Logs out a debug message.
 void debug(String message, Object[] parameters)
          Logs out a debug message supporting positional parameter substitutions.
 void debug(String message, Object[] parameters, Throwable t)
          Logs out a debug message supporting positional parameter substitutions and an associated Throwable.
 void debug(String message, Throwable t)
          Logs out a debug message associated with a Throwable.
 void error(String message)
          Logs out an error message.
 void error(String message, Object[] parameters)
          Logs out an error message supporting positional parameter substitutions.
 void error(String message, Object[] parameters, Throwable t)
          Logs out an error message supporting positional parameter substitutions and an associated Throwable.
 void error(String message, Throwable t)
          Logs out an error message associated with a Throwable.
 void fatal(String message)
          Logs out a fatal message.
 void fatal(String message, Object[] parameters)
          Logs out a fatal message supporting positional parameter substitutions.
 void fatal(String message, Object[] parameters, Throwable t)
          Logs out a fatal message supporting positional parameter substitutions and an associated Throwable.
 void fatal(String message, Throwable t)
          Logs out a fatal message associated with a Throwable.
 String getCategory()
          Returns the category this Logger logs information for.
 void info(String message)
          Logs out an info message.
 void info(String message, Object[] parameters)
          Logs out an info message supporting positional parameter substitutions.
 void info(String message, Object[] parameters, Throwable t)
          Logs out an info message supporting positional parameter substitutions and an associated Throwable.
 void info(String message, Throwable t)
          Logs out an info message associated with a Throwable.
 void warn(String message)
          Logs out a warn message.
 void warn(String message, Object[] parameters)
          Logs out a warn message supporting positional parameter substitutions.
 void warn(String message, Object[] parameters, Throwable t)
          Logs out a warn message supporting positional parameter substitutions and an associated Throwable.
 void warn(String message, Throwable t)
          Logs out a warn message associated with a Throwable.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Logger

public Logger(String category)
Constructs a Logger instance that will log information out to the specified category.

Parameters:
category - The category to log information for.
Method Detail

getCategory

public String getCategory()
Returns the category this Logger logs information for.

Returns:
The category this Logger logs information for.

debug

public void debug(String message)
Logs out a debug message.

Parameters:
message - The message to log.

debug

public void debug(String message,
                  Throwable t)
Logs out a debug message associated with a Throwable.

Parameters:
message - The message to log.
t - The associated Throwable.

debug

public void debug(String message,
                  Object[] parameters)
Logs out a debug message supporting positional parameter substitutions.

Parameters:
message - The message to log.
parameters - Parameters to substitute into the message.

debug

public void debug(String message,
                  Object[] parameters,
                  Throwable t)
Logs out a debug message supporting positional parameter substitutions and an associated Throwable.

Parameters:
message - The message to log.
parameters - Parameters to substitute into the message.
t - The associated Throwable.

info

public void info(String message)
Logs out an info message.

Parameters:
message - The message to log.

info

public void info(String message,
                 Throwable t)
Logs out an info message associated with a Throwable.

Parameters:
message - The message to log.
t - The associated Throwable.

info

public void info(String message,
                 Object[] parameters)
Logs out an info message supporting positional parameter substitutions.

Parameters:
message - The message to log.
parameters - Parameters to substitute into the message.

info

public void info(String message,
                 Object[] parameters,
                 Throwable t)
Logs out an info message supporting positional parameter substitutions and an associated Throwable.

Parameters:
message - The message to log.
parameters - Parameters to substitute into the message.
t - The associated Throwable.

warn

public void warn(String message)
Logs out a warn message.

Parameters:
message - The message to log.

warn

public void warn(String message,
                 Throwable t)
Logs out a warn message associated with a Throwable.

Parameters:
message - The message to log.
t - The associated Throwable.

warn

public void warn(String message,
                 Object[] parameters)
Logs out a warn message supporting positional parameter substitutions.

Parameters:
message - The message to log.
parameters - Parameters to substitute into the message.

warn

public void warn(String message,
                 Object[] parameters,
                 Throwable t)
Logs out a warn message supporting positional parameter substitutions and an associated Throwable.

Parameters:
message - The message to log.
parameters - Parameters to substitute into the message.
t - The associated Throwable.

error

public void error(String message)
Logs out an error message.

Parameters:
message - The message to log.

error

public void error(String message,
                  Throwable t)
Logs out an error message associated with a Throwable.

Parameters:
message - The message to log.
t - The associated Throwable.

error

public void error(String message,
                  Object[] parameters)
Logs out an error message supporting positional parameter substitutions.

Parameters:
message - The message to log.
parameters - Parameters to substitute into the message.

error

public void error(String message,
                  Object[] parameters,
                  Throwable t)
Logs out an error message supporting positional parameter substitutions and an associated Throwable.

Parameters:
message - The message to log.
parameters - Parameters to substitute into the message.
t - The associated Throwable.

fatal

public void fatal(String message)
Logs out a fatal message.

Parameters:
message - The message to log.

fatal

public void fatal(String message,
                  Throwable t)
Logs out a fatal message associated with a Throwable.

Parameters:
message - The message to log.
t - The associated Throwable.

fatal

public void fatal(String message,
                  Object[] parameters)
Logs out a fatal message supporting positional parameter substitutions.

Parameters:
message - The message to log.
parameters - Parameters to substitute into the message.

fatal

public void fatal(String message,
                  Object[] parameters,
                  Throwable t)
Logs out a fatal message supporting positional parameter substitutions and an associated Throwable.

Parameters:
message - The message to log.
parameters - Parameters to substitute into the message.
t - The associated Throwable.


Copyright © 2008 Adobe Systems Inc. All Rights Reserved.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/messaging/log/Logger.html