1
////////////////////////////////////////////////////////////////////////////////
2
/*! @file Log.h Собирает структурированную трассировочную информацию.
3
- Part of RANet - Research Assistant Net Library (based on ANSI C++).
4
- Copyright(C) 2011, Viktor E. Bursian, St.Petersburg, Russia.
5
Viktor.Bursian@mail.ioffe.ru
6
*///////////////////////////////////////////////////////////////////////////////
14
//------------------------------------------------------------------------------
20
RANet_EXPORT extern sLog Log;
24
//---------------------------------------------------------------------- sLog---
25
/*! Собирает структурированную трассировочную информацию.
30
class RANet_EXPORT sLog
41
class sItem //: public virtual sStorable
44
unsigned int Level () const
46
psItem Parent () const
47
{ return TheParent; };
50
eSeverity Severity () const
51
{ return TheSeverity; };
52
sString Topic () const
54
sString Message () const
55
{ return TheMessage; };
56
sString Text () const;
66
eSeverity TheSeverity;
69
unsigned int TheLevel;
77
void Put (eSeverity severity
80
void OpenBlock (eSeverity severity
83
void OpenBlock (eSeverity severity
85
void CloseBlock (eSeverity severity
87
void SetShowSeverity (eSeverity severity);
88
void AlwaysHide (sString topic);
89
void AlwaysShow (sString topic);
92
std::list<psItem> Items;
94
unsigned int CurrentLevel;
95
eSeverity TheShowSeverity;
96
std::set<sString> TopicsToHide;
97
std::set<sString> TopicsToShow;
100
//------------------------------------------------------------------------------