~ubuntu-branches/ubuntu/utopic/gnome-online-accounts/utopic

« back to all changes in this revision

Viewing changes to src/goabackend/goalogging.h

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson, Laurent Bigonville, Andreas Henriksson
  • Date: 2014-05-16 11:42:52 UTC
  • mfrom: (1.1.28) (0.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20140516114252-u5ect6mk6ht8i38x
Tags: 3.12.2-1
[ Laurent Bigonville ]
* debian/control.in: Recommends realmd package (Closes: #725965)

[ Andreas Henriksson ]
* New upstream release.
  - Removes chat support from Windows Live provider (XMPP gateway gone).
* Bump Standards-Version to 3.9.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
2
 
/*
3
 
 * Copyright (C) 2011 Red Hat, Inc.
4
 
 *
5
 
 * This library is free software; you can redistribute it and/or
6
 
 * modify it under the terms of the GNU Lesser General Public
7
 
 * License as published by the Free Software Foundation; either
8
 
 * version 2 of the License, or (at your option) any later version.
9
 
 *
10
 
 * This library is distributed in the hope that it will be useful,
11
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
 
 * Lesser General Public License for more details.
14
 
 *
15
 
 * You should have received a copy of the GNU Lesser General
16
 
 * Public License along with this library; if not, write to the
17
 
 * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
18
 
 * Boston, MA 02111-1307, USA.
19
 
 *
20
 
 * Author: David Zeuthen <davidz@redhat.com>
21
 
 */
22
 
 
23
 
#if !defined (__GOA_BACKEND_INSIDE_GOA_BACKEND_H__) && !defined (GOA_BACKEND_COMPILATION)
24
 
#error "Only <goabackend/goabackend.h> can be included directly."
25
 
#endif
26
 
 
27
 
#ifndef __GOA_LOGGING_H__
28
 
#define __GOA_LOGGING_H__
29
 
 
30
 
#include <glib.h>
31
 
 
32
 
#include "goabackendenums-priv.h"
33
 
 
34
 
G_BEGIN_DECLS
35
 
 
36
 
void goa_log_init (gboolean no_colors);
37
 
 
38
 
void goa_log (GoaLogLevel     level,
39
 
              const gchar    *function,
40
 
              const gchar    *location,
41
 
              const gchar    *format,
42
 
              ...) G_GNUC_PRINTF (4, 5);
43
 
 
44
 
/**
45
 
 * goa_debug:
46
 
 * @...: printf()-style format string and arguments
47
 
 *
48
 
 * Logging macro for %GOA_LOG_LEVEL_DEBUG.
49
 
 */
50
 
#define goa_debug(...)   goa_log(GOA_LOG_LEVEL_DEBUG, G_STRFUNC, G_STRLOC, __VA_ARGS__);
51
 
 
52
 
/**
53
 
 * goa_info:
54
 
 * @...: printf()-style format string and arguments
55
 
 *
56
 
 * Logging macro for %GOA_LOG_LEVEL_INFO.
57
 
 */
58
 
#define goa_info(...)    goa_log(GOA_LOG_LEVEL_INFO, G_STRFUNC, G_STRLOC, __VA_ARGS__);
59
 
 
60
 
/**
61
 
 * goa_notice:
62
 
 * @...: printf()-style format string and arguments
63
 
 *
64
 
 * Logging macro for %GOA_LOG_LEVEL_NOTICE.
65
 
 */
66
 
#define goa_notice(...)    goa_log(GOA_LOG_LEVEL_NOTICE, G_STRFUNC, G_STRLOC, __VA_ARGS__);
67
 
 
68
 
/**
69
 
 * goa_warning:
70
 
 * @...: printf()-style format string and arguments
71
 
 *
72
 
 * Logging macro for %GOA_LOG_LEVEL_WARNING.
73
 
 */
74
 
#define goa_warning(...) goa_log(GOA_LOG_LEVEL_WARNING, G_STRFUNC, G_STRLOC, __VA_ARGS__);
75
 
 
76
 
/**
77
 
 * goa_error:
78
 
 * @...: printf()-style format string and arguments
79
 
 *
80
 
 * Logging macro for %GOA_LOG_LEVEL_ERROR.
81
 
 */
82
 
#define goa_error(...)   goa_log(GOA_LOG_LEVEL_ERROR, G_STRFUNC, G_STRLOC, __VA_ARGS__);
83
 
 
84
 
 
85
 
G_END_DECLS
86
 
 
87
 
#endif /* __GOA_LOGGING_H__ */