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
Identifier uniquely determining type of the object.long
The maximum size of the file to where the internal TDLib log is written before the file will automatically be 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) The log is written to a file.LogStreamFile
(String path, long maxFileSize, boolean redirectStderr) The log is written to a file. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods 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 automatically be rotated, in bytes. -
redirectStderr
public boolean redirectStderrPass true to additionally redirect stderr to the log file. Ignored on Windows. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
LogStreamFile
public LogStreamFile()The log is written to a file. -
LogStreamFile
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.
-
LogStreamFile
The log is written to a file.- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-