X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FLogger%2FIOStreamTarget.hh;h=1d976cfa93964b231a00b2327e9e438d5e225847;hb=067a3eb8b81aeac439116d1c556e16bdc05f54eb;hp=94f999948c2f7a3e0440db9592e1112306d4273f;hpb=8cc565c01abff7d88fb3bf50f87222f9cad1e9f7;p=senf.git diff --git a/Utils/Logger/IOStreamTarget.hh b/Utils/Logger/IOStreamTarget.hh index 94f9999..1d976cf 100644 --- a/Utils/Logger/IOStreamTarget.hh +++ b/Utils/Logger/IOStreamTarget.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 @@ -37,12 +37,14 @@ namespace senf { namespace log { - /** \brief Write log messages to arbitrary std::ostream + /** \brief Write %log messages to arbitrary std::ostream - This target will write log messages to an arbitrary std::ostream in the format + This target will write %log messages to an arbitrary std::ostream in the format
          [] 
         
+ + The \e area will be omitted it it is \c senf::log::DefaultArea. The date formatting is set using the Boost.DateTime date_facet, e.g.: \code @@ -55,7 +57,9 @@ namespace log { \warning The class keeps a reference to the passed stream. \note This class will permanently and globally change the date formating of the given - stream. + stream if no \c boost::posix_time::time_facet has been set. + + \ingroup targets */ class IOStreamTarget : public Target @@ -78,9 +82,9 @@ namespace log { std::string const & message); std::ostream & stream_; + static char const * const LEVELNAMES_[8]; }; - }} ///////////////////////////////hh.e////////////////////////////////////////