com.badlogic.gdx.utils
Class Logger

java.lang.Object
  extended by 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

Field Summary
static int DEBUG
           
static int ERROR
           
static int INFO
           
static int NONE
           
 
Constructor Summary
Logger(String tag)
           
Logger(String tag, int level)
           
 
Method Summary
 void debug(String message)
           
 void debug(String message, Exception exception)
           
 void error(String message)
           
 void error(String message, Throwable exception)
           
 int getLevel()
           
 void info(String message)
           
 void info(String message, Exception exception)
           
 void setLevel(int level)
          Sets the log level.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Logger

public Logger(String tag)

Logger

public Logger(String tag,
              int level)
Method Detail

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 © 2014. All Rights Reserved.