---
name: "log4tango::LogStreamBuf"
section: "3"
platform: "linux"
package: "liblog4tango-doc"
version: "9.3.4+dfsg1-2+deb12u1"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/log4tango::LogStreamBuf"
---

# log4tango::LogStreamBuf(3)

## NAME

log4tango::LogStreamBuf

## SYNOPSIS

`#include <LogStreambuf.hh>`

Inherits std::streambuf.

### Public Member Functions

**LogStreamBuf** (**Logger** \*logger, **Level::Value** level, bool filter=true, size\_t bsize=512)\
 virtual **~LogStreamBuf** ()\

### Protected Member Functions

virtual std::streamsize **xsputn** (const char \*, std::streamsize)\
 virtual int **sync** (void)\

### Friends

class **LogStream**\

## Constructor & Destructor Documentation

### log4tango::LogStreamBuf::LogStreamBuf (Logger \* logger, Level::Value level, bool filter = `true`, size\_t bsize = `512`)

### log4tango::LogStreamBuf::~LogStreamBuf ()` [virtual]`

## Member Function Documentation

### int log4tango::LogStreamBuf::sync (void)` [protected]`, ` [virtual]`

### std::streamsize log4tango::LogStreamBuf::xsputn (const char \* \_in, std::streamsize \_in\_size)` [protected]`, ` [virtual]`

## Friends And Related Function Documentation

### friend class LogStream` [friend]`

## Author

Generated automatically by Doxygen for log4tango from the source code.
