Class: TD::Types::LogStream::File
- Inherits:
-
TD::Types::LogStream
- Object
- Dry::Struct
- Base
- TD::Types::LogStream
- TD::Types::LogStream::File
- Defined in:
- lib/tdlib/types/log_stream/file.rb
Overview
The log is written to a file.
Instance Attribute Summary collapse
-
#max_file_size ⇒ Integer
The maximum size of the file to where the internal TDLib log is written before the file will be auto-rotated.
-
#path ⇒ TD::Types::String
Path to the file to where the internal TDLib log will be written.
-
#redirect_stderr ⇒ Boolean
Pass true to additionally redirect stderr to the log file.
Method Summary
Methods inherited from Base
Instance Attribute Details
#max_file_size ⇒ Integer
The maximum size of the file to where the internal TDLib log is written before the file will be auto-rotated.
9 10 11 |
# File 'lib/tdlib/types/log_stream/file.rb', line 9 def max_file_size @max_file_size end |
#path ⇒ TD::Types::String
Path to the file to where the internal TDLib log will be written.
9 10 11 |
# File 'lib/tdlib/types/log_stream/file.rb', line 9 def path @path end |
#redirect_stderr ⇒ Boolean
Pass true to additionally redirect stderr to the log file. Ignored on Windows.
9 10 11 |
# File 'lib/tdlib/types/log_stream/file.rb', line 9 def redirect_stderr @redirect_stderr end |