tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::logStreamFile Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::logStreamFile:
td::td_api::LogStream td::td_api::Object td::TlObject

Public Member Functions

 logStreamFile ()
 
 logStreamFile (string const &path_, int53 max_file_size_, bool redirect_stderr_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from td::TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Public Attributes

string path_
 Path to the file to where the internal TDLib log will be written.
 
int53 max_file_size_
 The maximum size of the file to where the internal TDLib log is written before the file will automatically be rotated, in bytes.
 
bool redirect_stderr_
 Pass true to additionally redirect stderr to the log file. Ignored on Windows.
 

Static Public Attributes

static const std::int32_t ID = 1532136933
 Identifier uniquely determining a type of the object.
 

Detailed Description

The log is written to a file.

Definition at line 37998 of file td_api.h.

Constructor & Destructor Documentation

◆ logStreamFile() [1/2]

td::td_api::logStreamFile::logStreamFile ( )

The log is written to a file.

◆ logStreamFile() [2/2]

td::td_api::logStreamFile::logStreamFile ( string const &  path_,
int53  max_file_size_,
bool  redirect_stderr_ 
)

The log is written to a file.

Parameters
[in]path_Path to the file to where the internal TDLib log will be written.
[in]max_file_size_The maximum size of the file to where the internal TDLib log is written before the file will automatically be rotated, in bytes.
[in]redirect_stderr_Pass true to additionally redirect stderr to the log file. Ignored on Windows.

Member Function Documentation

◆ store()

void td::td_api::logStreamFile::store ( TlStorerToString &  s,
const char *  field_name 
) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements td::TlObject.

Member Data Documentation

◆ ID

const std::int32_t td::td_api::logStreamFile::ID = 1532136933
static

Identifier uniquely determining a type of the object.

Definition at line 38030 of file td_api.h.

◆ max_file_size_

int53 td::td_api::logStreamFile::max_file_size_

The maximum size of the file to where the internal TDLib log is written before the file will automatically be rotated, in bytes.

Definition at line 38011 of file td_api.h.

◆ path_

string td::td_api::logStreamFile::path_

Path to the file to where the internal TDLib log will be written.

Definition at line 38009 of file td_api.h.

◆ redirect_stderr_

bool td::td_api::logStreamFile::redirect_stderr_

Pass true to additionally redirect stderr to the log file. Ignored on Windows.

Definition at line 38013 of file td_api.h.


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