summaryrefslogtreecommitdiffstats
path: root/unified_src
diff options
context:
space:
mode:
authorScott Kennedy <skennedy@google.com>2013-05-25 21:29:22 -0700
committerScott Kennedy <skennedy@google.com>2013-06-05 20:04:06 -0700
commitb184bfe96fa3512af88260fce4f3cee3066fb28d (patch)
tree7e159ab874d6759eb27d67d9b586a20f7459bef2 /unified_src
parentf51ce08b103e901883eb4e340ee9ad64766c75a2 (diff)
downloadandroid_packages_apps_UnifiedEmail-b184bfe96fa3512af88260fce4f3cee3066fb28d.tar.gz
android_packages_apps_UnifiedEmail-b184bfe96fa3512af88260fce4f3cee3066fb28d.tar.bz2
android_packages_apps_UnifiedEmail-b184bfe96fa3512af88260fce4f3cee3066fb28d.zip
Unify LogTag
There is now only one LogTag class. The static initializer of GmailApplication (existing) and EmailApplication (new) will now set the log tag to "Gmail" and "Email", respectively. Up until that code is run, it will be "UnifiedEmail". "setprop log.tag.Gmail VERBOSE" (or .Email) will trigger all logs to be printed as long as they go through LogUtils, regardless of what tag is used by that individual log. This lets us still turn on logging everywhere in one command, but also lets us use more descriptive tags (like the class name). And since we no longer have three com.android.mail.utils.LogTag classes, builds will be much easier. Also, we now use LogUtils everywhere. Change-Id: Iec53e87cad0a46b73d2afbbd8d44aca097a5087a
Diffstat (limited to 'unified_src')
-rw-r--r--unified_src/com/android/mail/utils/LogTag.java28
1 files changed, 0 insertions, 28 deletions
diff --git a/unified_src/com/android/mail/utils/LogTag.java b/unified_src/com/android/mail/utils/LogTag.java
deleted file mode 100644
index 01e2cf84d..000000000
--- a/unified_src/com/android/mail/utils/LogTag.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- * Copyright (c) 2012, Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.android.mail.utils;
-
-public class LogTag {
- private static String LOG_TAG = "UnifiedEmail";
-
- /**
- * Get the log tag to apply to logging.
- */
- public static String getLogTag() {
- return LOG_TAG;
- }
-}