java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.LogStream
it.tdlight.jni.TdApi.LogStreamFile
- Enclosing class:
- TdApi
The log is written to a file.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
long
The maximum size of the file to where the internal TDLib log is written before the file will be auto-rotated, in bytes.Path to the file to where the internal TDLib log will be written.boolean
Pass true to additionally redirect stderr to the log file. -
Constructor Summary
ConstructorDescriptionThe log is written to a file.LogStreamFile
(DataInput input) LogStreamFile
(String path, long maxFileSize, boolean redirectStderr) The log is written to a file. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
path
Path to the file to where the internal TDLib log will be written. -
maxFileSize
public long maxFileSizeThe maximum size of the file to where the internal TDLib log is written before the file will be auto-rotated, in bytes. -
redirectStderr
public boolean redirectStderrPass true to additionally redirect stderr to the log file. Ignored on Windows. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
LogStreamFile
public LogStreamFile()The log is written to a file. -
LogStreamFile
The log is written to a file.- Parameters:
path
- String Path to the file to where the internal TDLib log will be written.maxFileSize
- long The maximum size of the file to where the internal TDLib log is written before the file will be auto-rotated, in bytes.redirectStderr
- boolean Pass true to additionally redirect stderr to the log file. Ignored on Windows.
-
LogStreamFile
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-