Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

lobtracestream.h File Reference

Provides classes & macros for easy tracing. More...

Go to the source code of this file.

Compounds

class  LobTraceException
 A traced exception. More...

struct  LobTraceProvider::_v
 Config file Parse results. More...

class  LobTraceProvider
 Trace server. More...

struct  LobTraceProvider::modDef_t
class  LobTraceStream
 Trace message to be logged. More...

class  LobTraceStreamEnd
 Trigger to Flush the LobTraceStream to its associated LobTraceProvider. More...


Variables

LobTraceProvider g_lobTraceProvider
 the default trace provider (used by basic macros). More...

LobTraceStreamEnd lt_endl
 lt_endl is to LobTraceStream what endl is to cout. More...

LobTraceStreamg_lobTraceStream


Detailed Description

Provides classes & macros for easy tracing.

Author:
Louis BAYLE <lbayle@users.sourceforge.net>
Date:
15 Dec 2002
Version:
1.1.0

Include lobtracestream to your program will allow you to set runtime configurable traces with only 5 macros (2 mandatory + 3 optional).

the main features are:

code example:
    LOB_TRACE(MODULE_SQL, WARNING) << "Unexpected value for i : " << i << lt_endl;

output will be (if MODULE_SQL trace level <= WARNING, else no trace generated):

    3-jul-2002 09:59:33   WARNING   MODULE_SQL: "Unexpected value for i : -12" [./example1.cpp:18]

Note:
ENVIRONMENT: Linux / UNIX / Windows

Variable Documentation

LobTraceProvider g_lobTraceProvider
 

the default trace provider (used by basic macros).

LobTraceStream& g_lobTraceStream
 

LobTraceStreamEnd lt_endl
 

lt_endl is to LobTraceStream what endl is to cout.


Generated on Sun Dec 15 23:17:21 2002 for LobTraceStream by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001