72 lines
1.8 KiB
Smali
72 lines
1.8 KiB
Smali
.class public Lcom/orhanobut/logger/AndroidLogAdapter;
|
|
.super Ljava/lang/Object;
|
|
.source "AndroidLogAdapter.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/orhanobut/logger/LogAdapter;
|
|
|
|
|
|
# instance fields
|
|
.field private final formatStrategy:Lcom/orhanobut/logger/FormatStrategy;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 27
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 28
|
|
invoke-static {}, Lcom/orhanobut/logger/PrettyFormatStrategy;->newBuilder()Lcom/orhanobut/logger/PrettyFormatStrategy$Builder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/orhanobut/logger/PrettyFormatStrategy$Builder;->build()Lcom/orhanobut/logger/PrettyFormatStrategy;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/orhanobut/logger/AndroidLogAdapter;->formatStrategy:Lcom/orhanobut/logger/FormatStrategy;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/orhanobut/logger/FormatStrategy;)V
|
|
.locals 0
|
|
|
|
.line 31
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 32
|
|
invoke-static {p1}, Lcom/orhanobut/logger/Utils;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/orhanobut/logger/FormatStrategy;
|
|
|
|
iput-object p1, p0, Lcom/orhanobut/logger/AndroidLogAdapter;->formatStrategy:Lcom/orhanobut/logger/FormatStrategy;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public isLoggable(ILjava/lang/String;)Z
|
|
.locals 0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public log(ILjava/lang/String;Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
.line 40
|
|
iget-object v0, p0, Lcom/orhanobut/logger/AndroidLogAdapter;->formatStrategy:Lcom/orhanobut/logger/FormatStrategy;
|
|
|
|
invoke-interface {v0, p1, p2, p3}, Lcom/orhanobut/logger/FormatStrategy;->log(ILjava/lang/String;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|