public class LogFile extends Object
| 修飾子とタイプ | フィールド | 説明 |
|---|---|---|
static int |
LOG_LEVEL_ALL |
|
static int |
LOG_LEVEL_DEBUG |
|
static int |
LOG_LEVEL_ERROR |
|
static int |
LOG_LEVEL_FATAL |
|
static int |
LOG_LEVEL_INFO |
|
static int |
LOG_LEVEL_NONE |
|
static int |
LOG_LEVEL_TRACE |
|
static int |
LOG_LEVEL_WARN |
| コンストラクタ | 説明 |
|---|---|
LogFile() |
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
static void |
CloseLogFile() |
Closes the log file.
|
static void |
Flush() |
Flushes the stream.
|
static void |
OpenLogFile() |
Creates a log file.
Call this method before logging. |
static void |
SetLogDirectory(String a_directory) |
Sets the directory where the log file will be created.
|
static void |
SetLogFilename(String a_filename) |
Sets the filename of the log file.
|
static void |
SetLogLevelFlags(int flags) |
Sets the flags to specify to what extent events should be logged.
|
static void |
SetOutputLogFlag(boolean a_output_log_flag) |
Sets the flag to determine whether to use log output.
|
static void |
WriteDebug(String str) |
Writes a debug string.
|
static void |
WriteError(String str) |
Writes an error string.
|
static void |
WriteFatal(String str) |
Writes a fatal string.
|
static void |
WriteInfo(String str) |
Writes an info string.
|
static void |
WriteLine(String str) |
Writes a line.
|
static void |
WriteString(String str) |
Writes a string.
|
static void |
WriteTrace(String str) |
Writes a trace string.
|
static void |
WriteWarn(String str) |
Writes a warning string.
|
public static final int LOG_LEVEL_FATAL
public static final int LOG_LEVEL_ERROR
public static final int LOG_LEVEL_WARN
public static final int LOG_LEVEL_INFO
public static final int LOG_LEVEL_DEBUG
public static final int LOG_LEVEL_TRACE
public static final int LOG_LEVEL_NONE
public static final int LOG_LEVEL_ALL
public static void SetLogDirectory(String a_directory)
a_directory - Directory namepublic static void SetLogFilename(String a_filename)
a_filename - Filenamepublic static void SetLogLevelFlags(int flags)
flags - Flagspublic static void SetOutputLogFlag(boolean a_output_log_flag)
a_output_log_flag - Output log flagpublic static void OpenLogFile()
public static void CloseLogFile()
public static void Flush()
public static void WriteString(String str)
str - Stringpublic static void WriteLine(String str)
str - Stringpublic static void WriteTrace(String str)
str - Stringpublic static void WriteDebug(String str)
str - Stringpublic static void WriteInfo(String str)
str - Stringpublic static void WriteWarn(String str)
str - Stringpublic static void WriteError(String str)
str - Stringpublic static void WriteFatal(String str)
str - StringCopyright © 2019. All rights reserved.