Logger

class Logger

Constructors

Link copied to clipboard
constructor()

Functions

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.
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.
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.
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.
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.
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.
Link copied to clipboard
You can be notified of the result of the log transfer through this listener.
Link copied to clipboard
open fun setUserField(@NonNull field: String, @NonNull value: Any)
Used to predefine additional information.
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.