5a56c0f6fa7fc6a905c6f4ee1148a30d4dd70da7
[senf.git] / Utils / Logger / main.test.hh
1 // $Id$
2 //
3 // Copyright (C) 2007 
4 // Fraunhofer Institute for Open Communication Systems (FOKUS) 
5 // Competence Center NETwork research (NET), St. Augustin, GERMANY 
6 //     Stefan Bund <g0dil@berlios.de>
7 //
8 // This program is free software; you can redistribute it and/or modify
9 // it under the terms of the GNU General Public License as published by
10 // the Free Software Foundation; either version 2 of the License, or
11 // (at your option) any later version.
12 //
13 // This program is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 // GNU General Public License for more details.
17 //
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the
20 // Free Software Foundation, Inc.,
21 // 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22
23 /** \file
24     \brief main.test public header */
25
26 #ifndef HH_main_test_
27 #define HH_main_test_ 1
28
29 // Custom includes
30
31 #ifdef SENF_LOG_CONF
32 #undef SENF_LOG_CONF
33 #endif
34
35 #define SENF_LOG_CONF (( (senf)(log)(Debug), (_), NOTICE )) \
36                       (( (senf)(log)(test)(myStream), (senf)(log)(test)(Foo), VERBOSE ))
37
38 #include "Logger.hh"
39
40 //#include "main.test.mpp"
41 ///////////////////////////////hh.p////////////////////////////////////////
42
43 namespace senf {
44 namespace log {
45 namespace test {
46     
47     struct Foo
48     {
49         SENF_LOG_CLASS_AREA();
50
51         static void log() {
52             SENF_LOG(("Foo::log"));
53         }
54     };
55
56     SENF_LOG_DEF_ALIAS( LogCritical, (senf::log::Debug) (senf::log::CRITICAL) );
57     SENF_LOG_DEF_STREAM( myStream, senf::log::MESSAGE, senf::log::MESSAGE, senf::log::MESSAGE );
58     SENF_LOG_DEF_AREA( myArea );
59
60 }}}
61
62 ///////////////////////////////hh.e////////////////////////////////////////
63 //#include "main.test.cci"
64 //#include "main.test.ct"
65 //#include "main.test.cti"
66 #endif
67
68 \f
69 // Local Variables:
70 // mode: c++
71 // fill-column: 100
72 // comment-column: 40
73 // c-file-style: "senf"
74 // indent-tabs-mode: nil
75 // ispell-local-dictionary: "american"
76 // compile-command: "scons -u test"
77 // End: