Skip to content

v0.2.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@XtremeOwnageDotCom XtremeOwnageDotCom released this 01 Sep 19:59
· 10 commits to main since this release
13b324f

What's Changed

  • Implements #29 - Ability to disable certificate validation by @XtremeOwnageDotCom in #30
  • Implements #32 - Adds configuration options to assist with debugging.
  • Implements #27, and #28 - Fix NullReferenceException.
  • Implements #34 - Customizable logging, Log retention, Logging to file, etc.
  • V0.2.1 - Bug Fixes, and Better Logging by @XtremeOwnageDotCom in #35

Full Changelog: v0.2.0...v0.2.1

New configuration options

# These settings are used when debugging, or when additional data or diagnostics is needed.
Debug:
    # When enabled, discovery messages will be formatted, and printed to console.
    # Default: false
    PrintDiscovery: false

    # When set to false, this will prevent messages from being published to the MQTT Broker.
    # This is used to test the entire program, WITHOUT sending messages.
    # Default: true
    PublishMessages: true

# Optional settings used to configure logging.
Logging:
    # Supported Severity Values: Verbose,Debug,Information,Warning,Error,Fatal    

    # Customize messages printed to Console / stdout
    Console:
        # Should messages be printed to stdout/console?
        # (Optional). Default: true
        Enabled: true

        # Only messages with this severity or higher will be printed.
        # (Optional). Default: Information
        Severity: Information

        # Allows customizing the format of log messages.
        # (Optional). Default: "[{Timestamp:HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}"
        # For details: https://github.com/serilog/serilog/wiki/Formatting-Output
        Format: "[{Timestamp:HH:mm:ss} {Level}] {Message:lj}{NewLine}{Exception}"

    # Customize logging to file.
    File:
        # Should messages be saved to a file?
        # (Optional). Default: false
        Enabled: false

        # Only messages with this severity or higher will be printed.
        # (Optional). Default: Information
        Severity: Debug

        # Allows customizing the format of log messages.
        # (Optional). Default: "[{Timestamp:HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}"
        # For details: https://github.com/serilog/serilog/wiki/Formatting-Output
        Format: "[{Timestamp:HH:mm:ss} {Level}] {Message:lj}{NewLine}{Exception}"

        # Set to the path where you wish to output a log file.
        # (Optional). Default: Not Specified
        # Example: /config/mylog.log
        Path: null

        # File Rollover
        # Options:
        # - Infinite = Files will never rollover.
        # - Year, Month, Day, Hour, Minute = Files will rollover this often.
        # (Optional.) Default: Day
        FileRollover: Day

        # The number of rolled over logs which will be retained.
        # Example, if RolloverMode=Day, and this is set to 30, you will retain ~30 days of logs.
        FileRetention: 30