Logutils changes

Allow Email to override the log tag for UnifiedEmail code

Change-Id: I4de991371cc80704c6f4c2198d7d121f22c16f48
This commit is contained in:
Paul Westbrook 2012-06-25 11:44:57 -07:00
parent bf50424033
commit cc3fb1dc68
2 changed files with 28 additions and 1 deletions

View File

@ -25,7 +25,6 @@ apache_src_dir := ../../../UnifiedEmail/src/org
imported_unified_email_files := \
$(unified_email_src_dir)/com/android/mail/utils/LogUtils.java \
$(unified_email_src_dir)/com/android/mail/utils/LoggingInputStream.java \
$(unified_email_src_dir)/com/android/mail/providers/UIProvider.java
LOCAL_MODULE := com.android.emailcommon2

View File

@ -0,0 +1,28 @@
/**
* 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 = "Email";
/**
* Get the log tag to apply to logging.
*/
public static String getLogTag() {
return LOG_TAG;
}
}