haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.LogStream

Synopsis

Documentation

data LogStream Source #

Describes a stream to which TDLib internal log is written

Constructors

LogStreamDefault

The log is written to stderr or an OS specific log

LogStreamFile

The log is written to a file

Fields

  • path :: Maybe Text

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

  • max_file_size :: Maybe Int

    The maximum size of the file to where the internal TDLib log is written before the file will automatically be rotated, in bytes

  • redirect_stderr :: Maybe Bool

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

LogStreamEmpty

The log is written nowhere

Instances

Instances details
FromJSON LogStream Source # 
Instance details

Defined in TD.Data.LogStream

ToJSON LogStream Source # 
Instance details

Defined in TD.Data.LogStream

Show LogStream Source # 
Instance details

Defined in TD.Data.LogStream

Eq LogStream Source # 
Instance details

Defined in TD.Data.LogStream

ShortShow LogStream Source # 
Instance details

Defined in TD.Data.LogStream