#tcp #async #low-level #channel #message #logger #tcp-channel

bin+lib async-tcp-channel

A low level TCP socket/stream based message channel implementation

5 releases

0.1.4 Apr 11, 2023
0.1.3 Apr 11, 2023
0.1.2 Apr 11, 2023
0.1.1 Apr 10, 2023
0.1.0 Apr 10, 2023

#139 in #logger

Custom license

44KB
862 lines

Note

This crate is NOT production ready!

Loggers

The following loggers are used:

  • atc-listener: Server side logs.
  • atc-connector: Client side logs.
  • atc-frame: Frame parsing logs.

Example log4rs.yml configuration file:

refresh_rate: 30 seconds

appenders:
  atc_listener_appender:
    kind: file
    path: "log/atc_listener.log"
    encoder:
      pattern: "{d} {l} - {m}{n}"
  atc_connector_appender:
    kind: file
    path: "log/atc_connector.log"
    encoder:
      pattern: "{d} {l} - {m}{n}"
  atc_frame_appender:
    kind: file
    path: "log/atc_frame.log"
    encoder:
      pattern: "{d} {l} - {m}{n}"
 

root:
  level: warn
  appenders:
    - atc_listener_appender

loggers:
  atc-listener:
    level: debug
    appenders:
      - atc_listener_appender
    additive: false
  atc-connector:
    level: debug
    appenders:
      - atc_connector_appender
    additive: false
  atc-frame:
    level: debug
    appenders:
      - atc_frame_appender
    additive: false

Dependencies

~6–13MB
~145K SLoC