Class 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 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

    Constructors
    Constructor
    Description
    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 Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Object

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • 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:
  • Constructor Details

    • 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 Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR