X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FLogger%2FLog.ih;h=4abdad951997a9ae66a73bc20e4f8a3df85dfb76;hb=74c8ccece7b542a2dfa66bf83a89e6e4fe4f06f3;hp=95c60201ce0288749f25a0a539c4eae8f15ad60a;hpb=394a298567543441521439ad15f7016cd569c449;p=senf.git diff --git a/Utils/Logger/Log.ih b/Utils/Logger/Log.ih index 95c6020..4abdad9 100644 --- a/Utils/Logger/Log.ih +++ b/Utils/Logger/Log.ih @@ -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 @@ -33,21 +33,25 @@ #define SENF_LOG_BLOCK_(parameters, block) \ do { \ - if (parameters::compileEnabled && parameters::enabled()) { \ + typedef parameters SENFLogParameters; \ + if (SENFLogParameters::compileEnabled && SENFLogParameters::enabled()) { \ std::stringstream log; \ do block while(0); \ - senf::log::write(log.str()); \ + senf::log::detail::write< SENFLogParameters::stream, \ + SENFLogParameters::area, \ + SENFLogParameters::level >(log.str()); \ } \ } while(0) #define SENF_LOG_BLOCK_TPL_(parameters, block) \ do { \ - if (parameters::compileEnabled && parameters::enabled()) { \ + typedef parameters SENFLogParameters; \ + if (SENFLogParameters::compileEnabled && SENFLogParameters::enabled()) { \ std::stringstream log; \ do block while(0); \ - senf::log::write(log.str()); \ + senf::log::detail::write(log.str()); \ } \ } while(0)