| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static EventStream | |
| private static EventLog. | |
| private static PrettyWriter | |
| private static Set |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private static boolean | |
| private static boolean | |
| private static void | |
| private static void | |
| public static boolean | |
| public static void | |
| public static void | |
| public static void |
| logStream | back to summary |
|---|---|
| private static EventStream logStream | |
| logWriter | back to summary |
|---|---|
| private static EventLog. | |
| prettyWriter | back to summary |
|---|---|
| private static PrettyWriter prettyWriter | |
| systemEventLookup | back to summary |
|---|---|
| private static Set<Long> systemEventLookup | |
| EventLog | back to summary |
|---|---|
| public EventLog() | |
| ensureSystemEventLookup | back to summary |
|---|---|
| private static void ensureSystemEventLookup() | |
| isLogging | back to summary |
|---|---|
| private static boolean isLogging() | |
| isSystemEvent | back to summary |
|---|---|
| private static boolean isSystemEvent(RecordedEvent event) | |
| log | back to summary |
|---|---|
| private static void log(RecordedEvent event) | |
| log | back to summary |
|---|---|
| private static void log(RecordedEvent event, int stackDepth, LogLevel level, boolean system) | |
| shouldLog | back to summary |
|---|---|
| public static boolean shouldLog() | |
| start | back to summary |
|---|---|
| public static void start() | |
| stop | back to summary |
|---|---|
| public static void stop() | |
| update | back to summary |
|---|---|
| public static void update() | |
| Modifier and Type | Field and Description |
|---|---|
| private final StringBuilder | |
| private LogLevel | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements abstract java. Implements java. Closes the stream, flushing it first. |
| public void | flush()
Implements abstract java. Implements java. Flushes the stream. |
| public void | |
| public void | |
| public void | write(char[] buffer, int off, int len)
Implements abstract java. Writes a portion of an array of characters. |
| builder | back to summary |
|---|---|
| private final StringBuilder builder | |
| level | back to summary |
|---|---|
| private LogLevel level | |
| system | back to summary |
|---|---|
| private boolean system | |
| LogWriter | back to summary |
|---|---|
| private LogWriter() | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements abstract java. Implements java. Doc from java. Closes the stream, flushing it first. Once the stream has been closed, further write() or flush() invocations will cause an IOException to be thrown. Closing a previously closed stream has no effect.
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Implements abstract java. Implements java. Doc from java. Flushes the stream. If the stream has saved any characters from the various write() methods in a buffer, write them immediately to their intended destination. Then, if that destination is another character or byte stream, flush it. Thus one flush() invocation will flush all the buffers in a chain of Writers and OutputStreams. If the intended destination of this stream is an abstraction provided by the underlying operating system, for example a file, then flushing the stream guarantees only that bytes previously written to the stream are passed to the operating system for writing; it does not guarantee that they are actually written to a physical device such as a disk drive.
| |
| setLevel | back to summary |
|---|---|
| public void setLevel(LogLevel level) | |
| setSystem | back to summary |
|---|---|
| public void setSystem(boolean system) | |
| write | back to summary |
|---|---|
| public void write(char[] buffer, int off, int len) throws IOException Implements abstract java. Doc from java. Writes a portion of an array of characters.
| |