|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.norconex.jef.log.FileLogManager
public class FileLogManager
Log manager using the file system to store its logs.
Constructor Summary | |
---|---|
FileLogManager(String logdir)
Constructor. |
|
FileLogManager(String logdir,
Layout layout)
Creates a new FileLogManager , wrapping the given
layout into a ThreadSafeLayout . |
Method Summary | |
---|---|
void |
backup(String namespace,
Date backupDate)
Backups the log for the given name space, and time stamps it with the given date. |
Appender |
createAppender(String namespace)
Creates a Log4J appender for the given name space. |
InputStream |
getLog(String namespace)
Gets the log for the given namespace. |
InputStream |
getLog(String namespace,
String jobId)
Gets the log for the given namespace and job identifier. |
File |
getLogFile(String namespace)
Gets the log file used by this log manager. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileLogManager(String logdir)
logdir
- base directory where the log should be storedpublic FileLogManager(String logdir, Layout layout)
FileLogManager
, wrapping the given
layout into a ThreadSafeLayout
.
logdir
- base directory where the log should be storedlayout
- Log4J layout for rendering the logsMethod Detail |
---|
public final Appender createAppender(String namespace) throws IOException
ILogManager
createAppender
in interface ILogManager
namespace
- namespace of the executing context
IOException
- problem creating the appenderpublic final void backup(String namespace, Date backupDate) throws IOException
ILogManager
getLog(String)
method.
backup
in interface ILogManager
namespace
- namespace of the executing contextbackupDate
- date of this backup
IOException
- problem creating backuppublic final InputStream getLog(String namespace) throws IOException
ILogManager
getLog
in interface ILogManager
namespace
- namespace of the executing context
IOException
- problem getting logpublic InputStream getLog(String namespace, String jobId) throws IOException
ILogManager
getLog
in interface ILogManager
namespace
- namespace of the executing contextjobId
- job identifier
IOException
- problem getting logpublic File getLogFile(String namespace)
namespace
- log file namespace
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |