Package it.tdlight.jni
Class TdApi.LogStreamFile
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.LogStream
it.tdlight.jni.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 int
CONSTRUCTOR
long
maxFileSize
The maximum size of the file to where the internal TDLib log is written before the file will be auto-rotated.String
path
Path to the file to where the internal TDLib log will be written.boolean
redirectStderr
Pass true to additionally redirect stderr to the log file. -
Constructor Summary
Constructors Constructor Description LogStreamFile()
The 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
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutputStream output)
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. -
redirectStderr
public boolean redirectStderrPass true to additionally redirect stderr to the log file. Ignored on Windows. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
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.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()
-