org.apache.wsif.logging
Class MessageLogger

java.lang.Object
  |
  +--org.apache.wsif.logging.MessageLogger

public class MessageLogger
extends java.lang.Object

Author:
Mark Whitlock

Method Summary
static boolean isErrorEnabled()
           
static boolean isFatalEnabled()
           
static boolean isInfoEnabled()
           
static boolean isWarnEnabled()
           
static void log(java.lang.String key)
           
static void log(java.lang.String key, java.lang.Object var)
          Logs the message with the given key.
static void log(java.lang.String key, java.lang.Object[] vars)
          Logs the message with the given key.
static void log(java.lang.String key, java.lang.Object var1, java.lang.Object var2)
          Logs the message with the given key.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isInfoEnabled

public static boolean isInfoEnabled()

isWarnEnabled

public static boolean isWarnEnabled()

isErrorEnabled

public static boolean isErrorEnabled()

isFatalEnabled

public static boolean isFatalEnabled()

log

public static void log(java.lang.String key)

log

public static void log(java.lang.String key,
                       java.lang.Object var)
Logs the message with the given key. If an argument is specified in the message (in the format of "{0}") then fill in that argument with the value of var.

log

public static void log(java.lang.String key,
                       java.lang.Object var1,
                       java.lang.Object var2)
Logs the message with the given key. If arguments are specified in the message (in the format of "{0} {1}") then fill them in with the values of var1 and var2, respectively.

log

public static void log(java.lang.String key,
                       java.lang.Object[] vars)
Logs the message with the given key. Replace each "{X}" in the message with vars[X]. If there are more vars than {X}'s, then the extra vars are ignored. If there are more {X}'s than vars, then a java.text.ParseException (subclass of RuntimeException) is thrown.


Copyright © 2002, 2002 Apache XML Project. All Rights Reserved.