clang specific define in Runtime.cc
[deliverable/titan.core.git] / core / LoggingParam.hh
1 /******************************************************************************
2 * Copyright (c) 2000-2016 Ericsson Telecom AB
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * Balasko, Jeno
10 * Baranyi, Botond
11 * Kovacs, Ferenc
12 * Zalanyi, Balazs Andor
13 * Pandi, Krisztian
14 *
15 ******************************************************************************/
16 #ifndef LOGGINGPARAM_H
17 #define LOGGINGPARAM_H
18
19 #include "Types.h"
20 #include "Logger.hh"
21 #include "LoggingBits.hh"
22
23 typedef enum
24 {
25 LP_FILEMASK,
26 LP_CONSOLEMASK,
27 LP_LOGFILESIZE,
28 LP_LOGFILENUMBER,
29 LP_DISKFULLACTION,
30 LP_LOGFILE,
31 LP_TIMESTAMPFORMAT,
32 LP_SOURCEINFOFORMAT,
33 LP_APPENDFILE,
34 LP_LOGEVENTTYPES,
35 LP_LOGENTITYNAME,
36 LP_MATCHINGHINTS,
37 LP_PLUGIN_SPECIFIC,
38 LP_UNKNOWN,
39 LP_EMERGENCY,
40 LP_EMERGENCYBEHAVIOR,
41 LP_EMERGENCYMASK,
42 LP_EMERGENCYFORFAIL
43 } logging_param_type;
44
45 struct logging_param_t
46 {
47 logging_param_type log_param_selection;
48 char *param_name; // Used to store name of plugin specific param.
49 union {
50 char *str_val;
51 int int_val;
52 boolean bool_val;
53 Logging_Bits logoptions_val;
54 TTCN_Logger::disk_full_action_t disk_full_action_value;
55 TTCN_Logger::timestamp_format_t timestamp_value;
56 TTCN_Logger::source_info_format_t source_info_value;
57 TTCN_Logger::log_event_types_t log_event_types_value;
58 TTCN_Logger::matching_verbosity_t matching_verbosity_value;
59 size_t emergency_logging;
60 TTCN_Logger::emergency_logging_behaviour_t emergency_logging_behaviour_value;
61 };
62 };
63
64 struct logging_setting_t
65 {
66 component_id_t component;
67 char *plugin_id;
68 logging_param_t logparam;
69 logging_setting_t *nextparam;
70 };
71
72 struct logging_plugin_t
73 {
74 component_id_t component;
75 char *identifier;
76 char *filename;
77 logging_plugin_t *next;
78 };
79
80 #endif
This page took 0.036405 seconds and 5 git commands to generate.