public final class LogRecords extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
decorate(LogRecord r,
Decorable d)
Inspects the log record and decorates its content.
|
static void |
scan(File f,
Handler h)
Scan log records stored in a file.
|
static void |
scan(InputStream is,
Handler h)
Scan log records from an input stream.
|
static void |
write(OutputStream os,
LogRecord rec)
Writhe log record to an output stream.
|
public static void decorate(LogRecord r, Decorable d)
r - the log recordd - callback to be called with inspected valuespublic static void write(OutputStream os, LogRecord rec) throws IOException
os - the output streamrec - the log recordIOException - when an I/O error occurs.public static void scan(File f, Handler h) throws IOException
f - the file to read log records fromh - handler that gets the log recordsIOException - when an I/O error occurs.public static void scan(InputStream is, Handler h) throws IOException
is - the input stream to read log records fromh - handler that gets the log recordsIOException - when an I/O error occurs.