com.googlecode.jpattern.service.log
Class DefaultMessageFormatter

java.lang.Object
  extended by com.googlecode.jpattern.service.log.DefaultMessageFormatter
All Implemented Interfaces:
IMessageFormatter, Serializable

public class DefaultMessageFormatter
extends Object
implements IMessageFormatter

Author:
Francesco Cina' 09/apr/2010
See Also:
Serialized Form

Constructor Summary
DefaultMessageFormatter()
           
 
Method Summary
 String toString(String eventName, IMessage message)
           
 String toString(String eventName, MessageException message)
           
 String toStringWithStackTrace(String eventName, MessageException message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMessageFormatter

public DefaultMessageFormatter()
Method Detail

toString

public String toString(String eventName,
                       IMessage message)
Specified by:
toString in interface IMessageFormatter

toString

public String toString(String eventName,
                       MessageException message)
Specified by:
toString in interface IMessageFormatter

toStringWithStackTrace

public String toStringWithStackTrace(String eventName,
                                     MessageException message)
Specified by:
toStringWithStackTrace in interface IMessageFormatter


Copyright © 2011. All Rights Reserved.