rodbus (.NET API) 1.3.1
Loading...
Searching...
No Matches
rodbus.LoggingConfig Class Reference

Logging configuration options More...

Public Member Functions

LoggingConfig WithLevel (LogLevel value)
 logging level More...
 
LoggingConfig WithOutputFormat (LogOutputFormat value)
 output formatting options More...
 
LoggingConfig WithTimeFormat (TimeFormat value)
 optional time format More...
 
LoggingConfig WithPrintLevel (bool value)
 optionally print the log level as part to the message string More...
 
LoggingConfig WithPrintModuleInfo (bool value)
 optionally print the underlying Rust module information to the message string More...
 
 LoggingConfig ()
 Initialize the configuration to default values More...
 

Public Attributes

LogLevel Level
 logging level More...
 
LogOutputFormat OutputFormat
 output formatting options More...
 
TimeFormat TimeFormat
 optional time format More...
 
bool PrintLevel
 optionally print the log level as part to the message string More...
 
bool PrintModuleInfo
 optionally print the underlying Rust module information to the message string More...
 

Detailed Description

Logging configuration options

Constructor & Destructor Documentation

◆ LoggingConfig()

rodbus.LoggingConfig.LoggingConfig ( )
inline

Initialize the configuration to default values

Default values:

Member Function Documentation

◆ WithLevel()

LoggingConfig rodbus.LoggingConfig.WithLevel ( LogLevel  value)
inline

logging level

◆ WithOutputFormat()

LoggingConfig rodbus.LoggingConfig.WithOutputFormat ( LogOutputFormat  value)
inline

output formatting options

◆ WithPrintLevel()

LoggingConfig rodbus.LoggingConfig.WithPrintLevel ( bool  value)
inline

optionally print the log level as part to the message string

◆ WithPrintModuleInfo()

LoggingConfig rodbus.LoggingConfig.WithPrintModuleInfo ( bool  value)
inline

optionally print the underlying Rust module information to the message string

◆ WithTimeFormat()

LoggingConfig rodbus.LoggingConfig.WithTimeFormat ( TimeFormat  value)
inline

optional time format

Member Data Documentation

◆ Level

LogLevel rodbus.LoggingConfig.Level

logging level

◆ OutputFormat

LogOutputFormat rodbus.LoggingConfig.OutputFormat

output formatting options

◆ PrintLevel

bool rodbus.LoggingConfig.PrintLevel

optionally print the log level as part to the message string

◆ PrintModuleInfo

bool rodbus.LoggingConfig.PrintModuleInfo

optionally print the underlying Rust module information to the message string

◆ TimeFormat

TimeFormat rodbus.LoggingConfig.TimeFormat

optional time format


The documentation for this class was generated from the following file: