KAuthLogger class
K-Auth 로거
라이브러리의 모든 로그를 관리합니다.
기본 사용법
// 로그 레벨 설정
KAuthLogger.level = KAuthLogLevel.debug;
// 프로덕션에서는 비활성화
KAuthLogger.level = KAuthLogLevel.none;
커스텀 로거
// 커스텀 로거 설정 (Firebase Crashlytics 등)
KAuthLogger.onLog = (event) {
if (event.level == KAuthLogLevel.error) {
FirebaseCrashlytics.instance.recordError(
event.error,
event.stackTrace,
reason: event.message,
);
}
};
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- level ↔ KAuthLogLevel
-
현재 로그 레벨
getter/setter pair
- onLog ↔ KAuthLoggerFunction?
-
커스텀 로거 함수
getter/setter pair
Static Methods
-
debug(
String message, {String? provider, Map< String, dynamic> ? data}) → void - 디버그 로그
-
error(
String message, {String? provider, Map< String, dynamic> ? data, Object? error, StackTrace? stackTrace}) → void - 에러 로그
-
info(
String message, {String? provider, Map< String, dynamic> ? data}) → void - 정보 로그
-
warning(
String message, {String? provider, Map< String, dynamic> ? data}) → void - 경고 로그