Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6cabe272 authored by Fan Zhang's avatar Fan Zhang
Browse files

Add a generic logging method so LogWriter works with statsd

Bug: 117860032
Test: rebuild
Change-Id: I38b3ce80b5c7965e9b9d109a6a708bb092f815fe
parent 0215e993
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -55,6 +55,7 @@ public interface LogWriter {

    /**
     * Logs an user action.
     *
     * @deprecated use {@link #action(int, int, Pair[])}
     */
    @Deprecated
@@ -62,6 +63,7 @@ public interface LogWriter {

    /**
     * Logs an user action.
     *
     * @deprecated use {@link #action(int, boolean, Pair[])}
     */
    @Deprecated
@@ -76,4 +78,10 @@ public interface LogWriter {
     * Logs a count.
     */
    void count(Context context, String name, int value);

    /**
     * Generically log action into statsd.
     */
    default void action(int attribution, int action, int pageId, String key, int value) {
    }
}