Package org.drinkless.tdlib
Class TdApi.LogStreamFile
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.LogStream
-
- org.drinkless.tdlib.TdApi.LogStreamFile
-
- Enclosing class:
- TdApi
public static class TdApi.LogStreamFile extends TdApi.LogStream
The log is written to a file.
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.longmaxFileSizeThe maximum size of the file to where the internal TDLib log is written before the file will automatically be rotated, in bytes.StringpathPath to the file to where the internal TDLib log will be written.booleanredirectStderrPass true to additionally redirect stderr to the log file.
-
Constructor Summary
Constructors Constructor Description LogStreamFile()The log is written to a file.LogStreamFile(String path, long maxFileSize, boolean redirectStderr)The log is written to a file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
path
public String path
Path to the file to where the internal TDLib log will be written.
-
maxFileSize
public long maxFileSize
The maximum size of the file to where the internal TDLib log is written before the file will automatically be rotated, in bytes.
-
redirectStderr
public boolean redirectStderr
Pass true to additionally redirect stderr to the log file. Ignored on Windows.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LogStreamFile
public LogStreamFile()
The log is written to a file.
-
LogStreamFile
public LogStreamFile(String path, long maxFileSize, boolean redirectStderr)
The log is written to a file.- Parameters:
path- Path to the file to where the internal TDLib log will be written.maxFileSize- The maximum size of the file to where the internal TDLib log is written before the file will automatically be rotated, in bytes.redirectStderr- Pass true to additionally redirect stderr to the log file. Ignored on Windows.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-