1 /* 2 * Copyright (C) 2015 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.android.camera.debug; 18 19 import com.android.camera.debug.Log.Tag; 20 21 import javax.annotation.ParametersAreNonnullByDefault; 22 23 /** 24 * Like {@link android.util.Log}. 25 */ 26 @ParametersAreNonnullByDefault 27 public interface Logger { 28 /** 29 * See {@link Log#d}. 30 */ d(String msg)31 public void d(String msg); 32 33 /** 34 * See {@link Log#d}. 35 */ d(String msg, Throwable tr)36 public void d(String msg, Throwable tr); 37 /** 38 * See {@link Log#e}. 39 */ e(String msg)40 public void e(String msg); 41 42 /** 43 * See {@link Log#e}. 44 */ e(String msg, Throwable tr)45 public void e(String msg, Throwable tr); 46 47 /** 48 * See {@link Log#i}. 49 */ i(String msg)50 public void i(String msg); 51 52 /** 53 * See {@link Log#i}. 54 */ i(String msg, Throwable tr)55 public void i(String msg, Throwable tr); 56 57 /** 58 * See {@link Log#v}. 59 */ v(String msg)60 public void v(String msg); 61 62 /** 63 * See {@link Log#v}. 64 */ v(String msg, Throwable tr)65 public void v(String msg, Throwable tr); 66 67 /** 68 * See {@link Log#w}. 69 */ w(String msg)70 public void w(String msg); 71 72 /** 73 * See {@link Log#w}. 74 */ w(String msg, Throwable tr)75 public void w(String msg, Throwable tr); 76 77 /** 78 * Provides a Logger instance from a given Log tag. 79 */ 80 public interface Factory { create(Tag tag)81 public Logger create(Tag tag); 82 } 83 } 84