~ubuntu-branches/ubuntu/maverick/cairo-dock/maverick

« back to all changes in this revision

Viewing changes to src/gldit/cairo-dock-log.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthieu Baerts (matttbe)
  • Date: 2010-08-09 23:26:12 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20100809232612-yp4c6ig3jt1bzpdv
Tags: 2.2.0~0beta4-0ubuntu1
* New Upstream Version (LP: #614624)
* Fixed a few bugs on LP:
 - LP: #518453: Dock appears under all windows
                 (Compiz - fullscreen window)
 - LP: #521369: Separator are not removed when closing
                 grouped windows
 - LP: #521762: Some sentences are not correct
 - LP: #526466: Icons of apps with same class shouldn't
                 be stacked by default
 - LP: #535083: Dialogues looks ugly when a lot of them
                 appears at the same time
 - More details on the 'ChangeLog' file
* debian/rules:
 - Autotools has been replaced by CMake
 - Man pages are now included in the source code
* debian/copyright:
 - Updated with the new pathes and new files
* debian/control:
 - Autotools has been replaced by CMake
 - Added libcurl4-gnutls-dev as Build-deps
 - Bump Standard-Version to 3.9.1
* debian/cairo-dock-core.install:
 - Man pages are now included in the source code
 - All sonames are now installed into lib32 or lib64
* debian/cairo-dock-dev.install:
 - pkgconfig is now installed into lib32 or lib64

Show diffs side-by-side

added added

removed removed

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