/usr/include/cairo-dock/gldit/cairo-dock-log.h is in cairo-dock-dev 3.4.1-1.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | /*
* cairo-dock-log.h
* This file is a part of the Cairo-Dock project
* Login : <ctaf42@gmail.Com>
* Started on Sat Feb 9 16:11:48 2008 Cedric GESTES
* $Id$
*
* Author(s)
* - Cedric GESTES
*
* Copyright : (C) 2008 Cedric GESTES
* E-mail : see the 'copyright' file.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 3
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef CAIRO_DOCK_LOG_H_
# define CAIRO_DOCK_LOG_H_
# include <glib.h>
G_BEGIN_DECLS
/*
* internal function
*/
void cd_log_location(const GLogLevelFlags loglevel,
const char *file,
const char *func,
const int line,
const char *format,
...);
/**
* Initialize the log system.
*/
void cd_log_init(gboolean bBlackTerminal);
/**
* Set the verbosity level.
*/
void cd_log_set_level(GLogLevelFlags loglevel);
/**
* Set the verbosity level from a readable verbosity.
*/
void cd_log_set_level_from_name (const gchar *cVerbosity);
/**
* Force the use of colors in the log messages even if these messages are not displayed into a tty.
*/
void cd_log_force_use_color (void);
/* Write an error message on the terminal. Error messages are used to indicate the cause of the program stop.
*@param ... the message format and parameters, in a 'printf' style.
*/
#define cd_error(...) \
cd_log_location(G_LOG_LEVEL_ERROR, __FILE__, __PRETTY_FUNCTION__, __LINE__,__VA_ARGS__)
/* Write a critical message on the terminal. Critical messages should be as clear as possible to be useful for end-users.
*@param ... the message format and parameters, in a 'printf' style.
*/
#define cd_critical(...) \
cd_log_location(G_LOG_LEVEL_CRITICAL, __FILE__, __PRETTY_FUNCTION__, __LINE__,__VA_ARGS__)
/* Write a warning message on the terminal. Warnings should be as clear as possible to be useful for end-users.
*@param ... the message format and parameters, in a 'printf' style.
*/
#define cd_warning(...) \
cd_log_location(G_LOG_LEVEL_WARNING, __FILE__, __PRETTY_FUNCTION__, __LINE__,__VA_ARGS__)
/* Write a message on the terminal. Messages are used to trace the sequence of functions, and may be used by users for a quick debug.
*@param ... the message format and parameters, in a 'printf' style.
*/
#define cd_message(...) \
cd_log_location(G_LOG_LEVEL_MESSAGE, __FILE__, __PRETTY_FUNCTION__, __LINE__,__VA_ARGS__)
/* Write a debug message on the terminal. Debug message are only useful for developpers.
*@param ... the message format and parameters, in a 'printf' style.
*/
#define cd_debug(...) \
cd_log_location(G_LOG_LEVEL_DEBUG, __FILE__, __PRETTY_FUNCTION__, __LINE__,__VA_ARGS__)
G_END_DECLS
#endif /* !CAIRO_DOCK_LOG_H_ */
|