Home | History | Annotate | Download | only in scandir

Lines Matching defs:LOG

65  * {@link DirectoryScanner DirectoryScanners} can be configured to log a
70 * <p>The <code>ResultLogManagerMXBean</code> can be configured to log
71 * these records to a flat file, or into a log held in memory, or both.
73 * <br>When the maximum capacity of the memory log is reached - its first
75 * <br>When the maximum capacity of the file log is reached, the file is
76 * renamed by appending a tilde '~' to its name and a new result log is created.
93 private static final Logger LOG =
96 // The memory log
100 // Whether the memory log capacity was reached. In that case every
105 // The maximum number of record that the memory log can
111 // log in the log file before creating a new file.
115 // The current log file.
119 // The OutputStream of the current log file.
123 // number of record that this object has logged in the log file
124 // since the log file was created. Creating a new file or clearing
125 // the log file reset this value to '0'
140 // Instantiate the memory log - override the add() method so that
235 * <p>Closes the log file stream, if it is still open.</p>
248 LOG.finest("Failed to close log properly: "+x);
253 * Create a new empty log file from the given basename, renaming
261 * Check whether a new log file should be created.
264 * Also reset the log count and file capacity.
265 * Sends a notification indicating that the log file was changed.
266 * Returns the new log stream;
300 public void log(ResultRecord record)
365 // Clear the memory log, sends a notification indicating that
366 // the memory log was cleared.
375 getNextSeqNumber(),"memory log cleared"));
378 // Clears the log file.
381 // simply force the creation of a new log file.
385 // Log a record to the memory log. Send a notification if the
386 // maximum capacity of the memory log is reached.
399 getNextSeqNumber(),"memory log capacity reached"));
403 // Log a record to the memory log. Send a notification if the
404 // maximum capacity of the memory log is reached.
415 // Get the stream into which we should log.
431 LOG.finest("Failed to log record: "+x);
438 * The notification type which indicates that the log file was switched:
439 * <i>com.sun.jmx.examples.scandir.log.file.switched</i>.
440 * The message contains the name of the new file (or null if log to file
444 "com.sun.jmx.examples.scandir.log.file.switched";
447 * The notification type which indicates that the memory log capacity has
449 * <i>com.sun.jmx.examples.scandir.log.memory.full</i>.
452 "com.sun.jmx.examples.scandir.log.memory.full";
455 * The notification type which indicates that the memory log was
457 * <i>com.sun.jmx.examples.scandir.log.memory.cleared</i>.
460 "com.sun.jmx.examples.scandir.log.memory.cleared";
465 * <i>com.sun.jmx.examples.scandir.log.file.switched</i>
466 * <i>com.sun.jmx.examples.scandir.log.memory.full</i>
467 * <i>com.sun.jmx.examples.scandir.log.memory.cleared</i>
475 "Emitted when the log file is switched")
480 "Emitted when the memory log capacity is reached")
485 "Emitted when the memory log is cleared")
489 // Return the name of the log file, or null if logging to file is