aboutsummaryrefslogtreecommitdiffstats
path: root/log.h
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-05-26 17:50:27 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-05-26 17:50:27 +0000
commit5d404864f204147ede0cb6e19c64e06ebdb85496 (patch)
tree91a8bae1bf7b20b378e960da7c100cb4475479ef /log.h
parent4a5deae5759f85eba4592689aec83ce380959af6 (diff)
use the log features of the GLib to have verbose output of the capturing engine, e.g. GLib provides different domains for different submodules. Output more verbose than warning level will be disabled by default (just like before).
use the console_log_handler in main.c for win32 AND unix now Currently use the log for the capturing engine (only), as I desperately needed a log output for debugging. svn path=/trunk/; revision=14438
Diffstat (limited to 'log.h')
-rw-r--r--log.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/log.h b/log.h
new file mode 100644
index 0000000000..56bb60d6f2
--- /dev/null
+++ b/log.h
@@ -0,0 +1,39 @@
+/* log.h
+ * log output definitions
+ *
+ * $Id$
+ *
+ * Ethereal - Network traffic analyzer
+ * By Gerald Combs <gerald@ethereal.com>
+ * Copyright 1998 Gerald Combs
+ *
+ * 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 2
+ * 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, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __LOG_H__
+#define __LOG_H__
+
+/* capture domain (except for capture child, see below) */
+#define LOG_DOMAIN_CAPTURE "Capture"
+
+/* capture child domain (the capture child might also contain file domain messages!) */
+#define LOG_DOMAIN_CAPTURE_CHILD "CaptureChild"
+
+
+/* enable very verbose capture log debug output */
+/*#define LOG_CAPTURE_VERBOSE*/
+
+
+#endif