org.androidannotations.logger.formatter
Class Formatter

java.lang.Object
  extended by org.androidannotations.logger.formatter.Formatter
Direct Known Subclasses:
FormatterFull, FormatterSimple

public abstract class Formatter
extends Object


Constructor Summary
Formatter()
           
 
Method Summary
protected  String buildFullMessage(String message, Object... args)
           
abstract  String buildLog(Level level, String loggerName, String message, Throwable thr, Object... args)
           
protected  String formatArgument(Object arg)
           
protected  int getCallerLineNumber()
           
protected  String getCurrentThread()
           
protected  String getTime()
           
protected  String stackTraceToString(Throwable e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Formatter

public Formatter()
Method Detail

buildLog

public abstract String buildLog(Level level,
                                String loggerName,
                                String message,
                                Throwable thr,
                                Object... args)

getCurrentThread

protected String getCurrentThread()

getTime

protected String getTime()

buildFullMessage

protected String buildFullMessage(String message,
                                  Object... args)

formatArgument

protected String formatArgument(Object arg)

stackTraceToString

protected String stackTraceToString(Throwable e)

getCallerLineNumber

protected int getCallerLineNumber()


Copyright © 2010-2014. All Rights Reserved.