Package org.omegat.util.logging
Class OmegaTFileHandler
java.lang.Object
java.util.logging.Handler
java.util.logging.StreamHandler
org.omegat.util.logging.OmegaTFileHandler
File handler for standard logging for support logrotating(on startup only)
and file naming with datetime part.
This handler will create 'OmegaT.log' for OmegaT(and OmegaT-1.log,
OmegaT-2.log for next instances which runned in the same time). logrotate
will work only on create handler, i.e. logs from one OmegaT run will be only
in one log file. It means, what log file can be much longer than maxinum file
size. Maximum file size used only on startup for decide: should we rotate
logs or not.
Rotated logs will be named like 'OmegaT.20080325.1800.log'.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.logging.StreamHandler
flush, isLoggable, setEncodingMethods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, setErrorManager, setFilter, setFormatter, setLevel
-
Constructor Details
-
OmegaTFileHandler
- Throws:
IOException
-
-
Method Details
-
getLogFileName
- Returns:
- the name of the current log file
-
close
- Overrides:
closein classStreamHandler- Throws:
SecurityException
-
publish
- Overrides:
publishin classStreamHandler
-