Back to index

natlog  0.91.0
data.cc
Go to the documentation of this file.
00001 #include "options.ih"
00002 
00003 char const Options::s_defaultConfigPath[]       = "/etc/natlog.conf";
00004 char const Options::s_defaultConntrackPath[]    = "/usr/sbin/conntrack";
00005 char const Options::s_defaultSyslogIdent[]      = "NATLOG";
00006 char const Options::s_defaultSyslogFacility[]   = "DAEMON";
00007 char const Options::s_defaultSyslogPriority[]   = "NOTICE";
00008 char const Options::s_defaultPIDfile[]          = "/var/run/natlog.pid";
00009 
00010 unordered_map<string, Options::Time> const Options::s_time = 
00011     {
00012         {"raw",     RAW},
00013         {"utc",     UTC},
00014         {"local",   LT},
00015     };
00016 
00017 
00018 unordered_map<string, Facility> const Options::s_syslogFacilities = 
00019     {
00020         {"DAEMON", Facility::DAEMON}, 
00021         {"LOCAL0", Facility::LOCAL0},
00022         {"LOCAL1", Facility::LOCAL1},
00023         {"LOCAL2", Facility::LOCAL2},
00024         {"LOCAL3", Facility::LOCAL3},
00025         {"LOCAL4", Facility::LOCAL4},
00026         {"LOCAL5", Facility::LOCAL5},
00027         {"LOCAL6", Facility::LOCAL6},
00028         {"LOCAL7", Facility::LOCAL7},
00029         {"USER",   Facility::USER}
00030     };
00031 
00032 unordered_map<string, Priority> const Options::s_syslogPriorities = 
00033     {
00034        {"EMERG",    Priority::EMERG},
00035        {"ALERT",    Priority::ALERT},
00036        {"CRIT",     Priority::CRIT},
00037        {"ERR",      Priority::ERR},
00038        {"WARNING",  Priority::WARNING},
00039        {"NOTICE",   Priority::NOTICE},
00040        {"INFO",     Priority::INFO},
00041        {"DEBUG",    Priority::DEBUG}
00042     };
00043 
00044 Options *Options::s_options = 0;
00045