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 convertInt(int i)
           
 String convertMultipleArguments(Object... objectList)
           
 IntegerTokenConverter getIntegerTokenConverter()
           
 String getPattern()
           
 DateTokenConverter getPrimaryDateTokenConverter()
           
 void setPattern(String pattern)
           
 String toRegex()
          Given date, convert this instance to a regular expression
 String toRegex(Date date)
          Given date, convert this instance to a regular expression.
 String toString()
           
 
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, 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

getPrimaryDateTokenConverter

public DateTokenConverter getPrimaryDateTokenConverter()

getIntegerTokenConverter

public IntegerTokenConverter getIntegerTokenConverter()

convertMultipleArguments

public String convertMultipleArguments(Object... objectList)

convert

public String convert(Object o)

convertInt

public String convertInt(int i)

setPattern

public void setPattern(String pattern)

getPattern

public String getPattern()

toRegex

public String toRegex(Date date)
Given date, convert this instance to a regular expression.


toRegex

public String toRegex()
Given date, convert this instance to a regular expression



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