Package hudson.plugins.audit_trail
Class AbstractLogFileAuditLogger
- java.lang.Object
-
- hudson.plugins.audit_trail.AuditLogger
-
- hudson.plugins.audit_trail.AbstractLogFileAuditLogger
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<AuditLogger>
- Direct Known Subclasses:
LogFileAuditLogger
,LogFileDailyRotationAuditLogger
public abstract class AbstractLogFileAuditLogger extends AuditLogger
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description AbstractLogFileAuditLogger(String log, int count, String logSeparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanUp()
Clean up any resource used by this logger.boolean
equals(Object o)
int
getCount()
FileHandler
getHandler()
String
getLog()
String
getLogSeparator()
int
hashCode()
void
log(String event)
-
Methods inherited from class hudson.plugins.audit_trail.AuditLogger
all, getDescriptor
-
-
-
-
Method Detail
-
log
public void log(String event)
- Specified by:
log
in classAuditLogger
-
cleanUp
public void cleanUp() throws SecurityException
Description copied from class:AuditLogger
Clean up any resource used by this logger. For instance if your logger use a InputStream, this is were you should close it.- Overrides:
cleanUp
in classAuditLogger
- Throws:
SecurityException
- if a security manager exists and if the caller does not haveLoggingPermission("control")
.
-
getLogSeparator
@NonNull public String getLogSeparator()
-
getLog
public String getLog()
-
getCount
public int getCount()
-
getHandler
public FileHandler getHandler()
-
-