|
TDLib
|
Inherits td::td_api::LogStream.
Public Member Functions | |
| logStreamFile () | |
| logStreamFile (string const &path_, int53 max_file_size_, bool redirect_stderr_) | |
| std::int32_t | get_id () const final |
| 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 | |
| TlObject & | operator= (const TlObject &)=delete |
| TlObject (TlObject &&)=default | |
| TlObject & | operator= (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. | |
The log is written to a file.
| td::td_api::logStreamFile::logStreamFile | ( | ) |
The log is written to a file.
| td::td_api::logStreamFile::logStreamFile | ( | string const & | path_, |
| int53 | max_file_size_, | ||
| bool | redirect_stderr_ | ||
| ) |
The log is written to a file.
| [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. |
|
inlinefinalvirtual |
Returns identifier uniquely determining a type of the object.
Implements td::TlObject.
|
finalvirtual |
Helper function for to_string method. Appends string representation of the object to the storer.
| [in] | s | Storer to which object string representation will be appended. |
| [in] | field_name | Object field_name if applicable. |
Implements td::TlObject.