class CCL::LogBuffer

Overview

#include <logfile.h>

class LogBuffer:
    public CCL::Unknown,
    public CCL::Alert::IReporter
{
public:
    // structs

    struct Entry;

    // fields

     IReporter;

    // construction

    LogBuffer (int maxEntries = 30);

    // methods

    PROPERTY_MUTABLE_CSTRING (title, Title);
    void print (CStringRef text);
    void dump (IStream& stream) const;
    bool isEmpty () const;
    virtual void CCL_API reportEvent (const Alert::Event& e);
    virtual void CCL_API setReportOptions (Severity minSeverity, int eventFormat);
};

Inherited Members

public:
    // methods

    virtual tresult CCL_API queryInterface (UIDRef iid, void** ptr) = 0;
    virtual unsigned int CCL_API retain () = 0;
    virtual unsigned int CCL_API release () = 0;
    Unknown& operator = (const Unknown&);
    unsigned int getRetainCount () const;
    virtual void CCL_API reportEvent (const Event& e) = 0;
    virtual void CCL_API setReportOptions (Severity minSeverity, int eventFormat) = 0;

Detailed Documentation

Methods

virtual void CCL_API reportEvent (const Alert::Event& e)

Report alert event.

virtual void CCL_API setReportOptions (Severity minSeverity, int eventFormat)

Set minimum logging level and report message format.