Remmina - The GTK+ Remote Desktop Client  v1.4.34
Remmina is a remote desktop client written in GTK+, aiming to be useful for system administrators and travellers, who need to work with lots of remote computers in front of either large monitors or tiny netbooks. Remmina supports multiple network protocols in an integrated and consistent user interface. Currently RDP, VNC, NX, XDMCP and SSH are supported.
remmina_log.h
Go to the documentation of this file.
1 /*
2  * Remmina - The GTK+ Remote Desktop Client
3  * Copyright (C) 2010 Vic Lee
4  * Copyright (C) 2017-2023 Antenore Gatta, Giovanni Panozzo
5  * Copyright (C) 2023-2024 Hiroyuki Tanaka, Sunil Bhat
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  * Boston, MA 02110-1301, USA.
21  *
22  * In addition, as a special exception, the copyright holders give
23  * permission to link the code of portions of this program with the
24  * OpenSSL library under certain conditions as described in each
25  * individual source file, and distribute linked combinations
26  * including the two.
27  * You must obey the GNU General Public License in all respects
28  * for all of the code used other than OpenSSL. * If you modify
29  * file(s) with this exception, you may extend this exception to your
30  * version of the file(s), but you are not obligated to do so. * If you
31  * do not wish to do so, delete this exception statement from your
32  * version. * If you delete this exception statement from all source
33  * files in the program, then also delete it here.
34  *
35  */
36 
37 #pragma once
38 
39 #include <stdarg.h>
40 #include <glib.h>
41 
42 G_BEGIN_DECLS
43 
44 #define LOG_FILE_NAME "remmina_log_file.log"
45 #define REMMINA_INFO(fmt, ...) _remmina_info(fmt, ## __VA_ARGS__)
46 #define REMMINA_MESSAGE(fmt, ...) _remmina_message(fmt, ## __VA_ARGS__)
47 #define REMMINA_DEBUG(fmt, ...) _remmina_debug(__func__, fmt, ## __VA_ARGS__)
48 #define REMMINA_WARNING(fmt, ...) _remmina_warning(__func__, fmt, ## __VA_ARGS__)
49 #define REMMINA_AUDIT(fmt, ...) _remmina_audit(__func__, fmt, ## __VA_ARGS__)
50 #define REMMINA_ERROR(fmt, ...) _remmina_error(__func__, fmt, ## __VA_ARGS__)
51 #define REMMINA_CRITICAL(fmt, ...) _remmina_critical(__func__, fmt, ## __VA_ARGS__)
52 
53 void remmina_log_start(void);
54 gboolean remmina_log_running(void);
55 void remmina_log_print(const gchar *text);
56 void remmina_log_file_append(gchar *text);
57 void _remmina_info(const gchar *fmt, ...);
58 void _remmina_message(const gchar *fmt, ...);
59 void _remmina_debug(const gchar *fun, const gchar *fmt, ...);
60 void _remmina_warning(const gchar *fun, const gchar *fmt, ...);
61 void _remmina_audit(const gchar *fun, const gchar *fmt, ...);
62 void _remmina_error(const gchar *fun, const gchar *fmt, ...);
63 void _remmina_critical(const gchar *fun, const gchar *fmt, ...);
64 void remmina_log_printf(const gchar *fmt, ...);
65 
66 G_END_DECLS
void _remmina_audit(const gchar *fun, const gchar *fmt,...)
Definition: remmina_log.c:340
void _remmina_critical(const gchar *fun, const gchar *fmt,...)
Definition: remmina_log.c:415
void _remmina_info(const gchar *fmt,...)
Definition: remmina_log.c:221
void remmina_log_start(void)
Definition: remmina_log.c:117
void remmina_log_file_append(gchar *text)
Definition: remmina_log.c:207
void _remmina_warning(const gchar *fun, const gchar *fmt,...)
Definition: remmina_log.c:310
void _remmina_debug(const gchar *fun, const gchar *fmt,...)
Print a string in the Remmina Debug Windows and in the terminal.
Definition: remmina_log.c:280
gboolean remmina_log_running(void)
Definition: remmina_log.c:163
void _remmina_error(const gchar *fun, const gchar *fmt,...)
Definition: remmina_log.c:385
void remmina_log_printf(const gchar *fmt,...)
Definition: remmina_log.c:447
void remmina_log_print(const gchar *text)
Definition: remmina_log.c:198
void _remmina_message(const gchar *fmt,...)
Definition: remmina_log.c:248