public final class JavaLoggerFileHandler extends StreamHandler
Constructor and Description |
---|
JavaLoggerFileHandler() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
@Nullable String |
fileName()
Returns current log file.
|
void |
flush() |
boolean |
isLoggable(LogRecord record) |
static File |
logDirectory(String workDir)
Resolves logging directory.
|
void |
nodeId(@Nullable String app,
@Nullable UUID nodeId,
String workDir)
Sets Node id and instantiates
FileHandler delegate. |
void |
nodeId(UUID nodeId,
String workDir)
Sets Node id and instantiates
FileHandler delegate. |
void |
publish(LogRecord record) |
String |
toString() |
setEncoding, setOutputStream
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setErrorManager, setFilter, setFormatter, setLevel
public void publish(LogRecord record)
publish
in class StreamHandler
public void flush()
flush
in class StreamHandler
public void close() throws SecurityException
close
in class StreamHandler
SecurityException
public boolean isLoggable(LogRecord record)
isLoggable
in class StreamHandler
public void nodeId(UUID nodeId, String workDir) throws IgniteCheckedException, IOException
FileHandler
delegate.nodeId
- Node id.workDir
- param.IgniteCheckedException
IOException
public void nodeId(@Nullable @Nullable String app, @Nullable @Nullable UUID nodeId, String workDir) throws IgniteCheckedException, IOException
FileHandler
delegate.app
- Application name.nodeId
- Node id.workDir
- Path to the work directory.IgniteCheckedException
IOException
@Nullable public @Nullable String fileName()
null
if node id has not been set yet.public static File logDirectory(String workDir) throws IgniteCheckedException
workDir
- Work directory.IgniteCheckedException
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023