com.badlogic.gdx.utils
Class Logger
java.lang.Object
com.badlogic.gdx.utils.Logger
public class Logger
- extends Object
Simple logger that uses the Application
logging facilities to output messages. The log level set with
Application.setLogLevel(int)
overrides the log level set here.
- Author:
- mzechner, Nathan Sweet
NONE
public static final int NONE
- See Also:
- Constant Field Values
ERROR
public static final int ERROR
- See Also:
- Constant Field Values
INFO
public static final int INFO
- See Also:
- Constant Field Values
DEBUG
public static final int DEBUG
- See Also:
- Constant Field Values
Logger
public Logger(String tag)
Logger
public Logger(String tag,
int level)
debug
public void debug(String message)
debug
public void debug(String message,
Exception exception)
info
public void info(String message)
info
public void info(String message,
Exception exception)
error
public void error(String message)
error
public void error(String message,
Throwable exception)
setLevel
public void setLevel(int level)
- Sets the log level.
NONE
will mute all log output. ERROR
will only let error messages through.
INFO
will let all non-debug messages through, and DEBUG
will let all messages through.
- Parameters:
level
- NONE
, ERROR
, INFO
, DEBUG
.
getLevel
public int getLevel()
Copyright © 2013. All Rights Reserved.