org.objectweb.util.monolog.wrapper.common
Class RelatifEnvironmentPathGetter

java.lang.Object
  extended by org.objectweb.util.monolog.wrapper.common.RelatifEnvironmentPathGetter

public abstract class RelatifEnvironmentPathGetter
extends java.lang.Object

this abstract class provides with the way to define a file real path with the value of environment variables value.
to do that, the path in the the log properties file must include some variable name those environment variable must be put in braket like ${MY_VARIABLE}

Example: ${TOMCAT_HOME}/logs/${APPLICATION_NAME}_log_file.log

Author:
franck Milleville fmillevi@yahoo.com

Constructor Summary
RelatifEnvironmentPathGetter()
           
 
Method Summary
static java.lang.String getRealPath(java.lang.String path)
          This method replace environment variables name by its value (when any)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelatifEnvironmentPathGetter

public RelatifEnvironmentPathGetter()
Method Detail

getRealPath

public static java.lang.String getRealPath(java.lang.String path)
This method replace environment variables name by its value (when any)

Parameters:
path - the file path including variable name
Returns:
the file path with environment variable value