Crashpad
 
Loading...
Searching...
No Matches
crashpad::LogOutputStream::Delegate Class Referenceabstract

An interface to a log output sink. More...

#include "util/stream/log_output_stream.h"

Public Member Functions

virtual int Log (const char *buf)=0
 Logs |buf| to the output sink.
 
virtual size_t OutputCap ()=0
 Returns the maximum number of bytes to allow writing to this log.
 
virtual size_t LineWidth ()=0
 Returns the maximum length of buffers allowed to be passed to Log().
 

Detailed Description

An interface to a log output sink.

Member Function Documentation

◆ Log()

virtual int crashpad::LogOutputStream::Delegate::Log ( const char * buf)
pure virtual

Logs |buf| to the output sink.

Parameters
bufthe buffer to write to the log. More bytes than are in |buf| may be written, e.g. to convey metadata.
Returns
the number of bytes written, or a negative error code.

The documentation for this class was generated from the following file: