NCBI C++ ToolKit
Public Types | Public Member Functions | List of all members
CDiagHandler Class Referenceabstract

Search Toolkit Book for CDiagHandler

#include <corelib/ncbidiag.hpp>

+ Inheritance diagram for CDiagHandler:

Public Types

enum  EReopenFlags { fTruncate = 0x01 , fCheck = 0x02 , fDefault = 0 }
 
typedef int TReopenFlags
 

Public Member Functions

virtual ~CDiagHandler (void)
 Destructor. More...
 
virtual void Post (const SDiagMessage &mess)=0
 Post message to handler. More...
 
virtual void PostToConsole (const SDiagMessage &mess)
 Post message to console regardless of its severity. More...
 
virtual bool AllowAsyncWrite (const SDiagMessage &msg) const
 Check if the handler supports async writes. More...
 
virtual string ComposeMessage (const SDiagMessage &msg, EDiagFileType *file_type) const
 Compose message without writing it. More...
 
virtual void WriteMessage (const char *buf, size_t len, EDiagFileType file_type)
 Write string to the log. More...
 
virtual string GetLogName (void)
 Get current diag posts destination. More...
 
virtual void Reopen (TReopenFlags)
 Reopen file to enable log rotation. More...
 

Detailed Description

Definition at line 2443 of file ncbidiag.hpp.


The documentation for this class was generated from the following files:
Modified on Sat May 18 11:38:10 2024 by modify_doxy.py rev. 669887