com.twitter.common.logging
Class LogUtil

java.lang.Object
  extended by com.twitter.common.logging.LogUtil

public class LogUtil
extends Object

Logging utility functions.


Method Summary
static File getLogManagerLogDir()
          Gets the log directory as configured with the log manager.
static File getLogManagerLogDir(String logFilePattern)
          Gets the log directory as specified in a log file pattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLogManagerLogDir

public static File getLogManagerLogDir()
Gets the log directory as configured with the log manager. This will attempt to expand any directory wildcards that are included in log file property.

Returns:
The configured log directory.

getLogManagerLogDir

public static File getLogManagerLogDir(String logFilePattern)
Gets the log directory as specified in a log file pattern. This will attempt to expand any directory wildcards that are included in log file property.

Parameters:
logFilePattern - The pattern to extract the log directory from.
Returns:
The configured log directory.