regen pidl all: rm epan/dissectors/pidl/*-stamp; pushd epan/dissectors/pidl/ && make...
[wireshark-sm.git] / include / ws_log_defs.h
blobdf2f774f23fd90d274a9778a27e24f0d99a67b50
1 /* ws_log_defs.h
2 * log domain definitions
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
11 #ifndef __WS_LOG_DOMAINS_H__
12 #define __WS_LOG_DOMAINS_H__
15 * Which log domain to use is a matter of policy. Any string is valid.
16 * There are no hard rules but using a pre-defined log domain is a good
17 * rule of thumb (there is no pre-defined domain below for dissectors
18 * though).
21 /* Main execution domain (wireshark, tshark, etc) */
22 #define LOG_DOMAIN_MAIN "Main"
24 /* Capture domain (except for capture child, see below) */
25 #define LOG_DOMAIN_CAPTURE "Capture"
27 /* Capture child domain (the capture child might also contain
28 * file domain messages!) */
29 #define LOG_DOMAIN_CAPCHILD "Capchild"
31 #define LOG_DOMAIN_WIRETAP "Wiretap"
33 #define LOG_DOMAIN_EPAN "Epan"
35 #define LOG_DOMAIN_DFILTER "DFilter"
37 #define LOG_DOMAIN_WSUTIL "WSUtil"
39 #define LOG_DOMAIN_QTUI "GUI"
41 #define LOG_DOMAIN_UAT "UAT"
43 #define LOG_DOMAIN_EXTCAP "Extcap"
45 #define LOG_DOMAIN_UTF_8 "UTF-8"
47 #define LOG_DOMAIN_MMDB "MaxMindDB"
49 #define LOG_DOMAIN_EINVAL "InvalidArg"
51 #define LOG_DOMAIN_PLUGINS "Plugins"
53 #define LOG_DOMAIN_WSLUA "Lua"
56 * Ascending order by priority needs to be maintained. Higher priorities have
57 * higher values.
59 enum ws_log_level {
60 LOG_LEVEL_NONE, /* not user facing */
61 LOG_LEVEL_NOISY, /* extra verbose debugging */
62 LOG_LEVEL_DEBUG, /* normal debugging level */
63 LOG_LEVEL_INFO, /* chatty status but not debug */
64 LOG_LEVEL_MESSAGE, /* default level, doesn't show file/function name */
65 LOG_LEVEL_WARNING, /* can be set to fatal */
66 LOG_LEVEL_CRITICAL, /* always enabled, can be set to fatal */
67 LOG_LEVEL_ERROR, /* "error" is always fatal (aborts) */
68 LOG_LEVEL_ECHO, /* Always print message, never fatal */
69 _LOG_LEVEL_LAST
72 #endif /* __WS_LOG_DOMAINS_H__ */
75 * Editor modelines - https://www.wireshark.org/tools/modelines.html
77 * Local variables:
78 * c-basic-offset: 4
79 * tab-width: 8
80 * indent-tabs-mode: nil
81 * End:
83 * vi: set shiftwidth=4 tabstop=8 expandtab:
84 * :indentSize=4:tabSize=8:noTabs=true: