X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FLogger%2FFileTarget.hh;h=5c4cc342944896ea34ca9f75bf46c4b0f9b3bc8a;hb=4004cfae8ca0e03a40385560e14bba730a801464;hp=45f1bd0eca3a609d698470342fba00f2f63868a2;hpb=e57e1ec99a16261d1f436d1ea42f60dda6aae5cc;p=senf.git diff --git a/Utils/Logger/FileTarget.hh b/Utils/Logger/FileTarget.hh index 45f1bd0..5c4cc34 100644 --- a/Utils/Logger/FileTarget.hh +++ b/Utils/Logger/FileTarget.hh @@ -1,8 +1,8 @@ // $Id$ // -// Copyright (C) 2007 -// Fraunhofer Institute for Open Communication Systems (FOKUS) -// Competence Center NETwork research (NET), St. Augustin, GERMANY +// 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 @@ -23,8 +23,8 @@ /** \file \brief FileTarget public header */ -#ifndef HH_FileTarget_ -#define HH_FileTarget_ 1 +#ifndef HH_SENF_Utils_Logger_FileTarget_ +#define HH_SENF_Utils_Logger_FileTarget_ 1 // Custom includes #include @@ -42,6 +42,13 @@ namespace log { The FileTarget will save all %log messages in the given file. Messages will be appended at the end of the file. + \code + senf::log::FileTarget target ("file.name"); + + // Route all messages to this file. + target.route(); + \endcode + After %log files have been rotated, the reopen() member should be called to create a new %log file.