Sync with 5.4.0
[deliverable/titan.core.git] / core / LoggingParam.hh
CommitLineData
970ed795 1///////////////////////////////////////////////////////////////////////////////
3abe9331 2// Copyright (c) 2000-2015 Ericsson Telecom AB
970ed795
EL
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#ifndef LOGGINGPARAM_H
9#define LOGGINGPARAM_H
10
11#include "Types.h"
12#include "Logger.hh"
13#include "LoggingBits.hh"
14
15typedef enum
16{
17 LP_FILEMASK,
18 LP_CONSOLEMASK,
19 LP_LOGFILESIZE,
20 LP_LOGFILENUMBER,
21 LP_DISKFULLACTION,
22 LP_LOGFILE,
23 LP_TIMESTAMPFORMAT,
24 LP_SOURCEINFOFORMAT,
25 LP_APPENDFILE,
26 LP_LOGEVENTTYPES,
27 LP_LOGENTITYNAME,
28 LP_MATCHINGHINTS,
29 LP_PLUGIN_SPECIFIC,
30 LP_UNKNOWN,
31 LP_EMERGENCY,
32 LP_EMERGENCYBEHAVIOR,
33 LP_EMERGENCYMASK
34} logging_param_type;
35
36struct logging_param_t
37{
38 logging_param_type log_param_selection;
39 char *param_name; // Used to store name of plugin specific param.
40 union {
41 char *str_val;
42 int int_val;
43 boolean bool_val;
44 Logging_Bits logoptions_val;
45 TTCN_Logger::disk_full_action_t disk_full_action_value;
46 TTCN_Logger::timestamp_format_t timestamp_value;
47 TTCN_Logger::source_info_format_t source_info_value;
48 TTCN_Logger::log_event_types_t log_event_types_value;
49 TTCN_Logger::matching_verbosity_t matching_verbosity_value;
50 size_t emergency_logging;
51 TTCN_Logger::emergency_logging_behaviour_t emergency_logging_behaviour_value;
52 };
53};
54
55struct logging_setting_t
56{
57 component_id_t component;
58 char *plugin_id;
59 logging_param_t logparam;
60 logging_setting_t *nextparam;
61};
62
63struct logging_plugin_t
64{
65 component_id_t component;
66 char *identifier;
67 char *filename;
68 logging_plugin_t *next;
69};
70
71#endif
This page took 0.045093 seconds and 5 git commands to generate.