15596b4c902dcb685928b43678f428746ca5ffd08Angus Kong/*
25596b4c902dcb685928b43678f428746ca5ffd08Angus Kong * Copyright (C) 2014 The Android Open Source Project
35596b4c902dcb685928b43678f428746ca5ffd08Angus Kong *
45596b4c902dcb685928b43678f428746ca5ffd08Angus Kong * Licensed under the Apache License, Version 2.0 (the "License");
55596b4c902dcb685928b43678f428746ca5ffd08Angus Kong * you may not use this file except in compliance with the License.
65596b4c902dcb685928b43678f428746ca5ffd08Angus Kong * You may obtain a copy of the License at
75596b4c902dcb685928b43678f428746ca5ffd08Angus Kong *
85596b4c902dcb685928b43678f428746ca5ffd08Angus Kong *      http://www.apache.org/licenses/LICENSE-2.0
95596b4c902dcb685928b43678f428746ca5ffd08Angus Kong *
105596b4c902dcb685928b43678f428746ca5ffd08Angus Kong * Unless required by applicable law or agreed to in writing, software
115596b4c902dcb685928b43678f428746ca5ffd08Angus Kong * distributed under the License is distributed on an "AS IS" BASIS,
125596b4c902dcb685928b43678f428746ca5ffd08Angus Kong * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
135596b4c902dcb685928b43678f428746ca5ffd08Angus Kong * See the License for the specific language governing permissions and
145596b4c902dcb685928b43678f428746ca5ffd08Angus Kong * limitations under the License.
155596b4c902dcb685928b43678f428746ca5ffd08Angus Kong */
165596b4c902dcb685928b43678f428746ca5ffd08Angus Kongpackage com.android.camera.debug;
175596b4c902dcb685928b43678f428746ca5ffd08Angus Kong
18c00f209e861dba093eb3c267ddc5078b23928d05Alan Newbergerpublic class LogHelper {
19e0457cfc20c974c7327aacf64456f32da4dca32bPaul Rohde    private static class Singleton {
20e0457cfc20c974c7327aacf64456f32da4dca32bPaul Rohde        private static final LogHelper INSTANCE = new LogHelper();
21e0457cfc20c974c7327aacf64456f32da4dca32bPaul Rohde    }
22e0457cfc20c974c7327aacf64456f32da4dca32bPaul Rohde
23e0457cfc20c974c7327aacf64456f32da4dca32bPaul Rohde    public static LogHelper instance() {
24e0457cfc20c974c7327aacf64456f32da4dca32bPaul Rohde        return Singleton.INSTANCE;
25c00f209e861dba093eb3c267ddc5078b23928d05Alan Newberger    }
265596b4c902dcb685928b43678f428746ca5ffd08Angus Kong
27c00f209e861dba093eb3c267ddc5078b23928d05Alan Newberger    /**
28c00f209e861dba093eb3c267ddc5078b23928d05Alan Newberger     * Return a valid log level from {@link android.util.Log} to override
29c00f209e861dba093eb3c267ddc5078b23928d05Alan Newberger     * the system log level. Return 0 to instead defer to system log level.
30c00f209e861dba093eb3c267ddc5078b23928d05Alan Newberger     */
31e0457cfc20c974c7327aacf64456f32da4dca32bPaul Rohde    public int getOverrideLevel() {
32c00f209e861dba093eb3c267ddc5078b23928d05Alan Newberger        return 0;
33c00f209e861dba093eb3c267ddc5078b23928d05Alan Newberger    }
34c00f209e861dba093eb3c267ddc5078b23928d05Alan Newberger}