YLS

class YLS

Yourssu Logging System, inspired by Timber

// 사용 예
// Application의 onCreate()에서 초기화
YLS.init(
platform = "android",
user = YLS.generateRandomId(10), // 10자리 랜덤 문자열
logger = YLS.RemoteLogger() // Logger 객체 지정
)

// init 때 지정한 Logger 객체를 사용하여 로깅
YLS.log("event" to "click")

// 유틸 함수 사용
logEvent("click")

See also

com.yourssu.logging.system.LoggingTest

Types

Link copied to clipboard
open class DebugLogger : YLS.Logger

디버깅 할 때 사용할 수 있는 Logger입니다.

Link copied to clipboard
Link copied to clipboard
abstract class Logger

실질적인 로깅을 수행하는 클래스. YLS.init으로 Logger 객체를 등록할 수 있습니다.

Link copied to clipboard
open class RemoteLogger(url: String, context: Context) : YLS.Logger

로그 데이터를 url로 PUT 요청을 보내는 Logger입니다.