toggle menu
Gamebase SDK for Android
2.63.0
androidJvm
switch theme
search in API
gamebase-sdk
/
com.toast.android.gamebase.base.log
/
Logger
Logger
open
class
Logger
Members
Constructors
Logger
Link copied to clipboard
constructor
(
)
Properties
ASSERT
Link copied to clipboard
val
ASSERT
:
Int
=
7
DEBUG
Link copied to clipboard
val
DEBUG
:
Int
=
3
ERROR
Link copied to clipboard
val
ERROR
:
Int
=
6
INFO
Link copied to clipboard
val
INFO
:
Int
=
4
LOGCAT
Link copied to clipboard
val
LOGCAT
:
String
=
"LogCat"
VERBOSE
Link copied to clipboard
val
VERBOSE
:
Int
=
2
WARN
Link copied to clipboard
val
WARN
:
Int
=
5
Functions
add
Loggable
Link copied to clipboard
open
fun
addLoggable
(
key
:
String
,
loggable
:
Loggable
)
d
Link copied to clipboard
open
fun
d
(
tag
:
String
,
msg
:
String
)
open
fun
d
(
tag
:
String
,
msg
:
String
,
tr
:
Throwable
)
Prints a message at DEBUG priority.
e
Link copied to clipboard
open
fun
e
(
tag
:
String
,
msg
:
String
)
open
fun
e
(
tag
:
String
,
msg
:
String
,
tr
:
Throwable
)
Prints a message at ERROR priority.
get
Log
Level
Link copied to clipboard
open
fun
getLogLevel
(
)
:
Int
i
Link copied to clipboard
open
fun
i
(
tag
:
String
,
msg
:
String
)
open
fun
i
(
tag
:
String
,
msg
:
String
,
tr
:
Throwable
)
Prints a message at INFO priority.
println
Link copied to clipboard
open
fun
println
(
priority
:
Int
,
tag
:
String
,
msg
:
String
)
open
fun
println
(
priority
:
Int
,
tag
:
String
,
msg
:
String
,
tr
:
Throwable
)
Instructs the LogNode to print the log data provided.
print
Log
Before
Initialize
Link copied to clipboard
open
fun
printLogBeforeInitialize
(
logLevel
:
Int
,
@
NonNull
tag
:
String
,
@
NonNull
message
:
String
)
Gamebase 초기화 전에는 DebugMode 설정이 초기값 상태라 Logger로 로그 출력이 안되므로 강제로 로그를 출력하는 함수.
remove
Loggable
Link copied to clipboard
open
fun
removeLoggable
(
key
:
String
)
:
Loggable
set
Log
Level
Link copied to clipboard
open
fun
setLogLevel
(
level
:
Int
)
set
Message
Prefix
Link copied to clipboard
open
fun
setMessagePrefix
(
key
:
String
,
prefix
:
String
)
v
Link copied to clipboard
open
fun
v
(
tag
:
String
,
msg
:
String
)
open
fun
v
(
tag
:
String
,
msg
:
String
,
tr
:
Throwable
)
Prints a message at VERBOSE priority.
w
Link copied to clipboard
open
fun
w
(
tag
:
String
,
msg
:
String
)
open
fun
w
(
tag
:
String
,
tr
:
Throwable
)
open
fun
w
(
tag
:
String
,
msg
:
String
,
tr
:
Throwable
)
Prints a message at WARN priority.
wtf
Link copied to clipboard
open
fun
wtf
(
tag
:
String
,
msg
:
String
)
open
fun
wtf
(
tag
:
String
,
tr
:
Throwable
)
open
fun
wtf
(
tag
:
String
,
msg
:
String
,
tr
:
Throwable
)
Prints a message at ASSERT priority.