X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FLogger%2FMainpage.dox;h=fb3af93567e33209def70b84e614d4b3733f7d13;hb=5fb9163ddc78aa5ab5a35b27e13ccb2c1028692a;hp=bc1d2204b7bc17ae677a0aaa90b08b9f2bbf41cf;hpb=044a1bfb46ce16c3daac307b8c684604b43dd4cf;p=senf.git diff --git a/Utils/Logger/Mainpage.dox b/Utils/Logger/Mainpage.dox index bc1d220..fb3af93 100644 --- a/Utils/Logger/Mainpage.dox +++ b/Utils/Logger/Mainpage.dox @@ -1,8 +1,8 @@ // $Id$ // // Copyright (C) 2007 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) +// 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 @@ -40,7 +40,7 @@ Log messages are arbitrarily created throughout the code using simple log statements (which are macros). Besides the log message itself, every log message is labeled with additional information: The \e stream, the \e area and a log \e level. If the message is not compile-time - disabled, the message is then directed to one of several log \e targets. + disabled, the message is then directed to one or several log \e targets. A \e stream combines log messages with a single purpose: Debug messages, access logging and so on. Any number of streams may be defined. There is one predefined default stream called \c @@ -48,7 +48,8 @@ The \e area gives information about the source location of the message. Areas may be defined and assigned arbitrarily but should be used to label messages from a single class or subsystem. It - is possible to reuse a class as it's own area tag, which is often desireable. (see: \ref + is possible to reuse a class as it's own area tag, which is often desireable. There is a + default area \c senf::log::DefaultArea which is used, when no other area is assigned. (see: \ref SENF_LOG_DEF_AREA, \ref SENF_LOG_CLASS_AREA) The log \e level gives information on the importance of the message. The list of log-levels is @@ -116,7 +117,7 @@ int main(int, char **) { // Set up the routing targets - senf::log::ConsoleTarget console; + senf::log::ConsoleTarget & console (senf::log::ConsoleTarget::instance()); senf::log::FileTarget logfile ("my.log"); // Debug messages go to the console