Package org.apache.ignite.logger.java
Class JavaLoggerFileHandler
- java.lang.Object
- 
- java.util.logging.Handler
- 
- java.util.logging.StreamHandler
- 
- org.apache.ignite.logger.java.JavaLoggerFileHandler
 
 
 
- 
 public final class JavaLoggerFileHandler extends StreamHandler File logging handler which skips all the messages until node ID is set.
- 
- 
Constructor SummaryConstructors Constructor Description JavaLoggerFileHandler()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()@Nullable StringfileName()Returns current log file.voidflush()booleanisLoggable(LogRecord record)static FilelogDirectory(String workDir)Resolves logging directory.voidnodeId(@Nullable String app, @Nullable UUID nodeId, String workDir)Sets Node id and instantiatesFileHandlerdelegate.voidnodeId(UUID nodeId, String workDir)Sets Node id and instantiatesFileHandlerdelegate.voidpublish(LogRecord record)StringtoString()- 
Methods inherited from class java.util.logging.StreamHandlersetEncoding, setOutputStream
 - 
Methods inherited from class java.util.logging.HandlergetEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setErrorManager, setFilter, setFormatter, setLevel
 
- 
 
- 
- 
- 
Method Detail- 
publishpublic void publish(LogRecord record) - Overrides:
- publishin class- StreamHandler
 
 - 
flushpublic void flush() - Overrides:
- flushin class- StreamHandler
 
 - 
closepublic void close() throws SecurityException- Overrides:
- closein class- StreamHandler
- Throws:
- SecurityException
 
 - 
isLoggablepublic boolean isLoggable(LogRecord record) - Overrides:
- isLoggablein class- StreamHandler
 
 - 
nodeIdpublic void nodeId(UUID nodeId, String workDir) throws IgniteCheckedException, IOException Sets Node id and instantiatesFileHandlerdelegate.- Parameters:
- nodeId- Node id.
- workDir- param.
- Throws:
- IgniteCheckedException
- IOException
 
 - 
nodeIdpublic void nodeId(@Nullable @Nullable String app, @Nullable @Nullable UUID nodeId, String workDir) throws IgniteCheckedException, IOExceptionSets Node id and instantiatesFileHandlerdelegate.- Parameters:
- app- Application name.
- nodeId- Node id.
- workDir- Path to the work directory.
- Throws:
- IgniteCheckedException
- IOException
 
 - 
fileName@Nullable public @Nullable String fileName() Returns current log file.- Returns:
- Pattern or nullif node id has not been set yet.
 
 - 
logDirectorypublic static File logDirectory(String workDir) throws IgniteCheckedException Resolves logging directory.- Parameters:
- workDir- Work directory.
- Returns:
- Logging directory.
- Throws:
- IgniteCheckedException
 
 
- 
 
-