Gamebase SDK for Android  2.44.0
NHN Cloud Gamebase Platform
Logger Class Reference
Collaboration diagram for Logger:
Collaboration graph

Static Public Member Functions

static void setMessagePrefix (String key, String prefix)
 
static int getLogLevel ()
 
static void setLogLevel (int level)
 
static void addLoggable (String key, Loggable loggable)
 
static Loggable removeLoggable (String key)
 
static void println (int priority, String tag, String msg, Throwable tr)
 Instructs the LogNode to print the log data provided. More...
 
static void println (int priority, String tag, String msg)
 Instructs the LogNode to print the log data provided. More...
 
static void v (String tag, String msg, Throwable tr)
 Prints a message at VERBOSE priority. More...
 
static void v (String tag, String msg)
 Prints a message at VERBOSE priority. More...
 
static void d (String tag, String msg, Throwable tr)
 Prints a message at DEBUG priority. More...
 
static void d (String tag, String msg)
 Prints a message at DEBUG priority. More...
 
static void i (String tag, String msg, Throwable tr)
 Prints a message at INFO priority. More...
 
static void i (String tag, String msg)
 Prints a message at INFO priority. More...
 
static void w (String tag, String msg, Throwable tr)
 Prints a message at WARN priority. More...
 
static void w (String tag, String msg)
 Prints a message at WARN priority. More...
 
static void w (String tag, Throwable tr)
 Prints a message at WARN priority. More...
 
static void e (String tag, String msg, Throwable tr)
 Prints a message at ERROR priority. More...
 
static void e (String tag, String msg)
 Prints a message at ERROR priority. More...
 
static void wtf (String tag, String msg, Throwable tr)
 Prints a message at ASSERT priority. More...
 
static void wtf (String tag, String msg)
 Prints a message at ASSERT priority. More...
 
static void wtf (String tag, Throwable tr)
 Prints a message at ASSERT priority. More...
 

Static Public Attributes

static final int VERBOSE = android.util.Log.VERBOSE
 
static final int DEBUG = android.util.Log.DEBUG
 
static final int INFO = android.util.Log.INFO
 
static final int WARN = android.util.Log.WARN
 
static final int ERROR = android.util.Log.ERROR
 
static final int ASSERT = android.util.Log.ASSERT
 
static final String LOGCAT = "LogCat"
 

Member Function Documentation

◆ addLoggable()

static void addLoggable ( String  key,
Loggable  loggable 
)
static

◆ d() [1/2]

static void d ( String  tag,
String  msg 
)
static

Prints a message at DEBUG priority.

Parameters
tagTag for for the log data. Can be used to organize log statements.
msgThe actual message to be logged.
Here is the call graph for this function:

◆ d() [2/2]

static void d ( String  tag,
String  msg,
Throwable  tr 
)
static

Prints a message at DEBUG priority.

Parameters
tagTag for for the log data. Can be used to organize log statements.
msgThe actual message to be logged.
trIf an exception was thrown, this can be sent along for the logging facilities to extract and print useful information.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ e() [1/2]

static void e ( String  tag,
String  msg 
)
static

Prints a message at ERROR priority.

Parameters
tagTag for for the log data. Can be used to organize log statements.
msgThe actual message to be logged.
Here is the call graph for this function:

◆ e() [2/2]

static void e ( String  tag,
String  msg,
Throwable  tr 
)
static

Prints a message at ERROR priority.

Parameters
tagTag for for the log data. Can be used to organize log statements.
msgThe actual message to be logged.
trIf an exception was thrown, this can be sent along for the logging facilities to extract and print useful information.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getLogLevel()

static int getLogLevel ( )
static

◆ i() [1/2]

static void i ( String  tag,
String  msg 
)
static

Prints a message at INFO priority.

Parameters
tagTag for for the log data. Can be used to organize log statements.
msgThe actual message to be logged.
Here is the call graph for this function:

◆ i() [2/2]

static void i ( String  tag,
String  msg,
Throwable  tr 
)
static

Prints a message at INFO priority.

Parameters
tagTag for for the log data. Can be used to organize log statements.
msgThe actual message to be logged.
trIf an exception was thrown, this can be sent along for the logging facilities to extract and print useful information.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ println() [1/2]

static void println ( int  priority,
String  tag,
String  msg 
)
static

Instructs the LogNode to print the log data provided.

Other LogNodes can be chained to the end of the LogNode as desired.

Parameters
priorityLogger level of the data being logged. Verbose, Error, etc.
tagTag for for the log data. Can be used to organize log statements.
msgThe actual message to be logged. The actual message to be logged.
Here is the call graph for this function:

◆ println() [2/2]

static void println ( int  priority,
String  tag,
String  msg,
Throwable  tr 
)
static

Instructs the LogNode to print the log data provided.

Other LogNodes can be chained to the end of the LogNode as desired.

Parameters
priorityLogger level of the data being logged. Verbose, Error, etc.
tagTag for for the log data. Can be used to organize log statements.
msgThe actual message to be logged.
trIf an exception was thrown, this can be sent along for the logging facilities to extract and print useful information.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeLoggable()

static Loggable removeLoggable ( String  key)
static

◆ setLogLevel()

static void setLogLevel ( int  level)
static

◆ setMessagePrefix()

static void setMessagePrefix ( String  key,
String  prefix 
)
static
Here is the call graph for this function:

◆ v() [1/2]

static void v ( String  tag,
String  msg 
)
static

Prints a message at VERBOSE priority.

Parameters
tagTag for for the log data. Can be used to organize log statements.
msgThe actual message to be logged.
Here is the call graph for this function:

◆ v() [2/2]

static void v ( String  tag,
String  msg,
Throwable  tr 
)
static

Prints a message at VERBOSE priority.

Parameters
tagTag for for the log data. Can be used to organize log statements.
msgThe actual message to be logged.
trIf an exception was thrown, this can be sent along for the logging facilities to extract and print useful information.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ w() [1/3]

static void w ( String  tag,
String  msg 
)
static

Prints a message at WARN priority.

Parameters
tagTag for for the log data. Can be used to organize log statements.
msgThe actual message to be logged.
Here is the call graph for this function:

◆ w() [2/3]

static void w ( String  tag,
String  msg,
Throwable  tr 
)
static

Prints a message at WARN priority.

Parameters
tagTag for for the log data. Can be used to organize log statements.
msgThe actual message to be logged.
trIf an exception was thrown, this can be sent along for the logging facilities to extract and print useful information.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ w() [3/3]

static void w ( String  tag,
Throwable  tr 
)
static

Prints a message at WARN priority.

Parameters
tagTag for for the log data. Can be used to organize log statements.
trIf an exception was thrown, this can be sent along for the logging facilities to extract and print useful information.
Here is the call graph for this function:

◆ wtf() [1/3]

static void wtf ( String  tag,
String  msg 
)
static

Prints a message at ASSERT priority.

Parameters
tagTag for for the log data. Can be used to organize log statements.
msgThe actual message to be logged.
Here is the call graph for this function:

◆ wtf() [2/3]

static void wtf ( String  tag,
String  msg,
Throwable  tr 
)
static

Prints a message at ASSERT priority.

Parameters
tagTag for for the log data. Can be used to organize log statements.
msgThe actual message to be logged.
trIf an exception was thrown, this can be sent along for the logging facilities to extract and print useful information.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ wtf() [3/3]

static void wtf ( String  tag,
Throwable  tr 
)
static

Prints a message at ASSERT priority.

Parameters
tagTag for for the log data. Can be used to organize log statements.
trIf an exception was thrown, this can be sent along for the logging facilities to extract and print useful information.
Here is the call graph for this function:

Member Data Documentation

◆ ASSERT

final int ASSERT = android.util.Log.ASSERT
static

◆ DEBUG

final int DEBUG = android.util.Log.DEBUG
static

◆ ERROR

final int ERROR = android.util.Log.ERROR
static

◆ INFO

final int INFO = android.util.Log.INFO
static

◆ LOGCAT

final String LOGCAT = "LogCat"
static

◆ VERBOSE

final int VERBOSE = android.util.Log.VERBOSE
static

◆ WARN

final int WARN = android.util.Log.WARN
static