org.objectweb.util.monolog.wrapper.common
Class RelatifEnvironmentPathGetter
java.lang.Object
org.objectweb.util.monolog.wrapper.common.RelatifEnvironmentPathGetter
public abstract class RelatifEnvironmentPathGetter
- extends 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
|
Method Summary |
static String |
getRealPath(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 |
RelatifEnvironmentPathGetter
public RelatifEnvironmentPathGetter()
getRealPath
public static String getRealPath(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
Copyright © 2012 OW2 Consortium. All Rights Reserved.