public class GlobalLogger extends GamsJNI
| Constructor and Description |
|---|
GlobalLogger()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addFile(String filename)
Adds a file to logging outputs
|
static void |
addSyslog()
Adds the system logger to logging outputs
|
static void |
addTerm()
Adds the terminal to logging outputs (turned on by default)
|
static void |
clear()
Clears all logging targets
|
static int |
getLevel()
Gets the logging level, e.g., where 0 is EMERGENCY and 6 is DETAILED
|
static String |
getTag()
Gets the tag used in system logging
|
static void |
log(int level,
String message)
Logs a message at the specified level
|
static void |
setLevel(int level)
Sets the logging level
|
static void |
setTag(String tag)
Sets the tag used for system logging
|
static void |
setTimestampFormat(String format)
Sets timestamp format.
|
static ai.madara.logger.Logger |
toLogger()
Gets the logging level, e.g., where 0 is EMERGENCY and 6 is DETAILED
|
public static String getTag()
public static int getLevel()
public static ai.madara.logger.Logger toLogger()
public static void setTag(String tag)
tag - the tag to be used for system loggingpublic static void setLevel(int level)
level - level of message severity to print to log targetspublic static void clear()
public static void addTerm()
public static void addSyslog()
public static void addFile(String filename)
filename - the name of a file to add to logging targetspublic static void log(int level,
String message)
level - the logging severity level (0 is high)message - the message to send to all logging targetsCopyright © 2018. All rights reserved.