Class: TD::Types::LogStream::File

Inherits:
TD::Types::LogStream show all
Defined in:
lib/tdlib/types/log_stream/file.rb

Overview

The log is written to a file.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#max_file_sizeInteger

The maximum size of the file to where the internal TDLib log is written before the file will be auto-rotated.

Returns:

  • (Integer)

    the current value of max_file_size



9
10
11
# File 'lib/tdlib/types/log_stream/file.rb', line 9

def max_file_size
  @max_file_size
end

#pathTD::Types::String

Path to the file to where the internal TDLib log will be written.

Returns:

  • (TD::Types::String)

    the current value of path



9
10
11
# File 'lib/tdlib/types/log_stream/file.rb', line 9

def path
  @path
end

#redirect_stderrBoolean

Pass true to additionally redirect stderr to the log file. Ignored on Windows.

Returns:

  • (Boolean)

    the current value of redirect_stderr



9
10
11
# File 'lib/tdlib/types/log_stream/file.rb', line 9

def redirect_stderr
  @redirect_stderr
end