Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(369)

Issue 1113563004: [android log] add convenience functions and improve tag headspace (Closed)

Created:
5 years, 7 months ago by dgn
Modified:
5 years, 7 months ago
Reviewers:
Bernhard Bauer, Yaron
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[android log] add convenience functions and improve tag headspace The tag provided to the log functions is now directly used. Getting the full tag from the group tag should now be done once at class initialization, which will allow catching long tag errors earlier. Replaced the "chromium" base tag by "cr" Added convenience functions to make it easier to call isLoggable(tag, level) BUG=472152, 469807 Committed: https://crrev.com/f18fe92b893c9888f1b6cf25806dfddc5b3e1072 Cr-Commit-Position: refs/heads/master@{#327299}

Patch Set 1 #

Patch Set 2 : Update Tests #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -76 lines) Patch
M base/android/java/src/org/chromium/base/Log.java View 10 chunks +99 lines, -73 lines 2 comments Download
M base/android/junit/src/org/chromium/base/LogTest.java View 1 1 chunk +9 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
dgn
PTAL, this should fix the problem of "tag too long" errors being discovered too late. ...
5 years, 7 months ago (2015-04-28 13:25:41 UTC) #2
Bernhard Bauer
lgtm
5 years, 7 months ago (2015-04-28 13:43:58 UTC) #3
dgn
5 years, 7 months ago (2015-04-28 13:49:00 UTC) #5
Yaron
lgtm https://codereview.chromium.org/1113563004/diff/20001/base/android/java/src/org/chromium/base/Log.java File base/android/java/src/org/chromium/base/Log.java (right): https://codereview.chromium.org/1113563004/diff/20001/base/android/java/src/org/chromium/base/Log.java#newcode32 base/android/java/src/org/chromium/base/Log.java:32: * private static final String TAG = Log.makeTag("Group"); ...
5 years, 7 months ago (2015-04-28 14:17:56 UTC) #6
dgn
Thanks for the quick review! https://codereview.chromium.org/1113563004/diff/20001/base/android/java/src/org/chromium/base/Log.java File base/android/java/src/org/chromium/base/Log.java (right): https://codereview.chromium.org/1113563004/diff/20001/base/android/java/src/org/chromium/base/Log.java#newcode32 base/android/java/src/org/chromium/base/Log.java:32: * private static final ...
5 years, 7 months ago (2015-04-28 14:28:48 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1113563004/20001
5 years, 7 months ago (2015-04-28 14:29:08 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 7 months ago (2015-04-28 16:20:04 UTC) #10
commit-bot: I haz the power
5 years, 7 months ago (2015-04-28 16:21:28 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/f18fe92b893c9888f1b6cf25806dfddc5b3e1072
Cr-Commit-Position: refs/heads/master@{#327299}

Powered by Google App Engine
This is Rietveld 408576698