~ubuntu-branches/ubuntu/maverick/libtorrent-rasterbar/maverick

« back to all changes in this revision

Viewing changes to include/libtorrent/kademlia/logging.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Sauthier
  • Date: 2010-08-10 12:59:37 UTC
  • mfrom: (1.3.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20100810125937-jbcmmf17y8yo9hgz
Tags: 0.15.0-0ubuntu1
* New upstream version.
* debian/patches/100_fix_html_docs.patch: refreshed.
* debian/control: bump up standards-version to 3.9.1 (no changes).

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
#ifndef TORRENT_LOGGING_HPP
34
34
#define TORRENT_LOGGING_HPP
35
35
 
 
36
#include "libtorrent/config.hpp"
 
37
 
 
38
#if TORRENT_USE_IOSTREAM
 
39
 
36
40
#include <iostream>
37
41
#include <fstream>
 
42
#include "libtorrent/time.hpp"
38
43
 
39
44
namespace libtorrent { namespace dht
40
45
{
86
91
                : log_(log) 
87
92
        {
88
93
                if (log_.enabled())
89
 
                        log_ << '[' << log.id() << "] ";
 
94
                        log_ << time_now_string() << " [" << log.id() << "] ";
90
95
        }
91
96
 
92
97
        ~log_event()
142
147
        if (libtorrent::dht::inverted_log_event event_object__ = name ## _log()); \
143
148
        else static_cast<log_event&>(event_object__)
144
149
 
 
150
#endif // TORRENT_USE_IOSTREAM
 
151
 
145
152
#endif
146
153