# Logger

class Logger

## Constructors

Logger
Link copied to clipboard
constructor()

## Functions

debug
Link copied to clipboard
open fun debug(@NonNull message: String)
open fun debug(@NonNull format: String, @NonNull args: Array<Any>)
open fun debug(@NonNull message: String, @NonNull userFields: Map<String, String>)
Send a log to Log &Crash Server for analyzing the string message with debug level.
error
Link copied to clipboard
open fun error(@NonNull message: String)
open fun error(@NonNull format: String, @NonNull args: Array<Any>)
open fun error(@NonNull message: String, @NonNull userFields: Map<String, String>)
Send a log to Log &Crash Server for analyzing the string message with error level.
fatal
Link copied to clipboard
open fun fatal(@NonNull message: String)
open fun fatal(@NonNull format: String, @NonNull args: Array<Any>)
open fun fatal(@NonNull message: String, @NonNull userFields: Map<String, String>)
Send a log to Log &Crash Server for analyzing the string message with fatal level.
info
Link copied to clipboard
open fun info(@NonNull message: String)
open fun info(@NonNull format: String, @NonNull args: Array<Any>)
open fun info(@NonNull message: String, @NonNull userFields: Map<String, String>)
Send a log to Log &Crash Server for analyzing the string message with info level.
initialize
Link copied to clipboard
open fun initialize(@NonNull context: Context, @NonNull callback: GamebaseCallback)
Initialize NHN Cloud logger SDK with the key value defined in string resource.
open fun initialize(@NonNull context: Context, @NonNull configuration: LoggerConfiguration)
Initialize NHN Cloud logger SDK NHN Cloud logger SDK sends a log to Log &Crash Server for analyzing the data.
report
Link copied to clipboard
open fun report(@NonNull message: String, @NonNull throwable: Throwable)
open fun report(@NonNull message: String, @NonNull throwable: Throwable, @Nullable userFields: Map<String, String>)
Send a handled exception information to Log &Crash Server for analyze exception with fatal level.
setLoggerListener
Link copied to clipboard
open fun setLoggerListener(@NonNull listener: LoggerListener)
You can be notified of the result of the log transfer through this listener.
setUserField
Link copied to clipboard
open fun setUserField(@NonNull field: String, @NonNull value: Any)
Used to predefine additional information.
warn
Link copied to clipboard
open fun warn(@NonNull message: String)
open fun warn(@NonNull format: String, @NonNull args: Array<Any>)
open fun warn(@NonNull message: String, @NonNull userFields: Map<String, String>)
Send a log to Log &Crash Server for analyzing the string message with warn level.