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

Commit 777f548c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add a generic logging method so LogWriter works with statsd"

parents 367d14a1 6cabe272
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) {
    }
}