public class Log
extends java.lang.Object
| Modifier | Constructor | Description |
|---|---|---|
protected |
Log() |
|
|
Log(java.io.File file) |
|
|
Log(java.io.File file,
int size,
int max_count) |
|
|
Log(java.lang.String path) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Closes the log file.
|
void |
log(java.lang.String text) |
Writes an entry to the log file.
|
void |
logln(java.lang.String text) |
|
static Log |
nullLog() |
Returns a Log that won't actually store a log.
|
public Log(java.lang.String path)
throws java.io.FileNotFoundException,
java.io.IOException
java.io.FileNotFoundExceptionjava.io.IOExceptionpublic Log(java.io.File file,
int size,
int max_count)
throws java.io.IOException
java.io.IOExceptionpublic Log(java.io.File file)
throws java.io.FileNotFoundException,
java.io.IOException
java.io.FileNotFoundExceptionjava.io.IOExceptionprotected Log()
public void log(java.lang.String text)
public void logln(java.lang.String text)
public void close()
public static Log nullLog()
Copyright © 2018. All rights reserved.