ch.elca.el4j.util.logging.appenders
Class SmartFileLibrary

java.lang.Object
  extended by ch.elca.el4j.util.logging.appenders.SmartFileLibrary

public class SmartFileLibrary
extends Object

This provides methods to check and construct a valid logfile path. Setting an absolute log file path that works in all environments is typically hard. This Appender-wrapper creates such an absolute log file path.

Author:
Rashid Waraich (RWA)
File-location:
SmartFileLibrary
Last check-in date:
2009-08-04 15:48:31 +0200 (Di, 04. Aug 2009) by swismer for revision 3884

Constructor Summary
protected SmartFileLibrary()
          Hide the default constructor as this is a utility class.
 
Method Summary
static String createSmartLogPath(String fileName)
          This method tries to create a valid logfile path from the given input.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmartFileLibrary

protected SmartFileLibrary()
Hide the default constructor as this is a utility class.

Method Detail

createSmartLogPath

public static String createSmartLogPath(String fileName)
                                 throws IOException
This method tries to create a valid logfile path from the given input.

Parameters:
fileName - The fileName.
Returns:
A valid filePath.
Throws:
IOException - Throws IOException, if any input invalid.


Copyright © 2005-2011 ELCA. All Rights Reserved.