log.h File Reference


Detailed Description

Interface for Logging Subsystem.

Definition in file log.h.

#include <hn/osdep.h>
#include <boost/format.hpp>
#include <boost/thread.hpp>
#include <boost/function.hpp>
#include <boost/signals.hpp>
#include <boost/bind.hpp>
#include <map>
#include <set>
#include <vector>
#include <deque>
#include <string>
#include <iostream>
#include <fstream>

Include dependency graph for log.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Enumerations

enum  InternalTraceMasks {
  TRACE_HASH = 0x01, TRACE_MD, TRACE_MOD, TRACE_SOCKET,
  TRACE_PARTDATA, TRACE_SHAREDFILE, TRACE_FILESLIST, TRACE_OBJECT,
  TRACE_HT, TRACE_SCHED, TRACE_RANGE, TRACE_EVENT,
  TRACE_CONFIG
}
 These trace masks are used internally by the framework's various classes. More...
enum  MessageType {
  MT_MSG = 0x01, MT_DEBUG = 0x02, MT_TRACE = 0x04, MT_ERROR = 0x08,
  MT_WARNING = 0x10
}
 Different message types. More...

Enumeration Type Documentation

enum InternalTraceMasks
 

These trace masks are used internally by the framework's various classes.

Users of the framework are required to use string trace masks instead of integer trace masks to avoid masks overlapping between modules.

Enumeration values:
TRACE_HASH  Used in Hash classes.
TRACE_MD  Used in MetaData classes.
TRACE_MOD  Used by ModManager class.
TRACE_SOCKET  Used by Sockets classes.
TRACE_PARTDATA  Used by PartData class.
TRACE_SHAREDFILE  Used by SharedFile class.
TRACE_FILESLIST  Used by FilesList class.
TRACE_OBJECT  Used by Object class.
TRACE_HT  Used by HashThread class.
TRACE_SCHED  Used by Scheduler class.
TRACE_RANGE  Used by Range Management Subsystem.
TRACE_EVENT  Used by Event Handling Subsystem.
TRACE_CONFIG  Used by Config class.

Definition at line 95 of file log.h.

enum MessageType
 

Different message types.

Enumeration values:
MT_MSG  Normal, informative messages.
MT_DEBUG  Debugging messages, disabled in release mode.
MT_TRACE  Trace messages, disabled in release mode.
MT_ERROR  Error messages.
MT_WARNING  Warnings.

Definition at line 112 of file log.h.