Logback API
Version 0.9.8

ch.qos.logback.core.rolling.helper
Class FileNamePattern

java.lang.Object
  extended by ch.qos.logback.core.spi.ContextAwareBase
      extended by ch.qos.logback.core.rolling.helper.FileNamePattern
All Implemented Interfaces:
ContextAware

public class FileNamePattern
extends ContextAwareBase

After parsing file name patterns, given a number or a date, instances of this class can be used to compute a file name according to the file name pattern and the given integer or date.

Author:
Ceki Gülcü

Field Summary
 
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
 
Constructor Summary
FileNamePattern(String patternArg, Context contextArg)
           
 
Method Summary
 String convert(Object o)
           
 String convertDate(Date date)
           
 String convertInt(int i)
           
 DateTokenConverter getDateTokenConverter()
           
 IntegerTokenConverter getIntegerTokenConverter()
           
 String getPattern()
           
 void setPattern(String pattern)
           
 String toString()
           
 
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileNamePattern

public FileNamePattern(String patternArg,
                       Context contextArg)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getDateTokenConverter

public DateTokenConverter getDateTokenConverter()

getIntegerTokenConverter

public IntegerTokenConverter getIntegerTokenConverter()

convert

public String convert(Object o)

convertInt

public String convertInt(int i)

convertDate

public String convertDate(Date date)

setPattern

public void setPattern(String pattern)

getPattern

public String getPattern()

Logback API
Version 0.9.8

Copyright © 2005-2008 QOS.ch. All Rights Reserved.