00001 #ifndef OPTIONS_H
00002 #define OPTIONS_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include "qpid/Options.h"
00022 #include <iosfwd>
00023
00024 namespace qpid {
00025 namespace log {
00026
00028 struct SyslogFacility {
00029 int value;
00030 SyslogFacility(int i=0) : value(i) {}
00031 };
00032
00033 std::ostream& operator<<(std::ostream&, const SyslogFacility&);
00034 std::istream& operator>>(std::istream&, SyslogFacility&);
00035
00037 struct Options : public qpid::Options {
00039 Options(const std::string& argv0,
00040 const std::string& name="Logging options");
00041
00042 std::vector<std::string> selectors;
00043 std::vector<std::string> outputs;
00044 bool time, level, thread, source, function;
00045 bool trace;
00046 std::string syslogName;
00047 SyslogFacility syslogFacility;
00048 std::string prefix;
00049 };
00050
00051
00052 }}
00053
00054
00055
00056 #endif