X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FLogger%2Fmain.test.hh;h=1d209236ffe26f5698d65ed69d72e50c8643b769;hb=ff3ba5ab8c5e3a4697783649875c93c74ba38b4d;hp=799d529cc32a204939018784cd11bdaba173261c;hpb=ac86c2bb40746fbedf70a19af3307e5da642b04a;p=senf.git diff --git a/Utils/Logger/main.test.hh b/Utils/Logger/main.test.hh index 799d529..1d20923 100644 --- a/Utils/Logger/main.test.hh +++ b/Utils/Logger/main.test.hh @@ -1,8 +1,8 @@ // $Id$ // -// Copyright (C) 2007 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer NETwork research (NET) +// Copyright (C) 2007 +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund // // This program is free software; you can redistribute it and/or modify @@ -28,7 +28,12 @@ // Custom includes +#ifdef SENF_LOG_CONF +#undef SENF_LOG_CONF +#endif + #define SENF_LOG_CONF (( (senf)(log)(Debug), (_), NOTICE )) \ + (( (senf)(log)(test)(myStream), (GlobalTestArea), IMPORTANT )) \ (( (senf)(log)(test)(myStream), (senf)(log)(test)(Foo), VERBOSE )) #include "Logger.hh" @@ -36,6 +41,8 @@ //#include "main.test.mpp" ///////////////////////////////hh.p//////////////////////////////////////// +SENF_LOG_DEFINE_AREA(GlobalTestArea); + namespace senf { namespace log { namespace test { @@ -49,9 +56,9 @@ namespace test { } }; - SENF_LOG_DEF_ALIAS( LogCritical, (senf::log::Debug) (senf::log::CRITICAL) ); - SENF_LOG_DEF_STREAM( myStream, senf::log::MESSAGE, senf::log::MESSAGE, senf::log::MESSAGE ); - SENF_LOG_DEF_AREA( myArea ); + SENF_LOG_DEFINE_ALIAS( LogCritical, (senf::log::Debug) (senf::log::CRITICAL) ); + SENF_LOG_DEFINE_STREAM( myStream, senf::log::MESSAGE, senf::log::MESSAGE, senf::log::MESSAGE ); + SENF_LOG_DEFINE_AREA( myArea ); }}}