/src/l.h
C++ Header | 53 lines | 7 code | 10 blank | 36 comment | 0 complexity | 3ee30be2fc8ff7c16021c1b9e3391777 MD5 | raw file
1/* 2 * bdremoteng - helper daemon for Sony(R) BD Remote Control 3 * Based on bdremoted, written by Anton Starikov <antst@mail.ru>. 4 * 5 * Copyright (C) 2009 Michael Wojciechowski <wojci@wojci.dk> 6 * 7 * 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation; either version 2 of the License, or 11 * (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program; if not, write to the Free Software 20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 21 * 22 */ 23 24/** @defgroup log Logging */ 25/*@{*/ 26 27/*! \file l.h 28 \brief Logging. 29 30 Support function to setup logging to a file/stdout. 31 32*/ 33 34#ifndef BD_L_H 35#define BD_L_H 36 37#include <bdrcfg.h> 38 39/** Set the default log - stdout. */ 40void setDefaultLog(); 41 42/** Set logging to the file specified in the config. If no file is 43 specified, do nothing. */ 44int setLogFile(const configuration* _config); 45 46/** Close the log file previously opened for reading. If none was 47 opened, do nothing.*/ 48void closeLogFile(); 49 50#endif /* BD_L_H */ 51 52/*@}*/ 53