tesseract
3.03
|
00001 /********************************************************************** 00002 * File: tlog.cpp 00003 * Description: Variant of printf with logging level controllable by a 00004 * commandline flag. 00005 * Author: Ranjith Unnikrishnan 00006 * Created: Wed Nov 20 2013 00007 * 00008 * (C) Copyright 2013, Google Inc. 00009 ** Licensed under the Apache License, Version 2.0 (the "License"); 00010 ** you may not use this file except in compliance with the License. 00011 ** You may obtain a copy of the License at 00012 ** http://www.apache.org/licenses/LICENSE-2.0 00013 ** Unless required by applicable law or agreed to in writing, software 00014 ** distributed under the License is distributed on an "AS IS" BASIS, 00015 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00016 ** See the License for the specific language governing permissions and 00017 ** limitations under the License. 00018 * 00019 **********************************************************************/ 00020 00021 #include "tlog.h" 00022 00023 INT_PARAM_FLAG(tlog_level, 0, "Minimum logging level for tlog() output");