Configuration
fasp.io Gateway Configuration File
Archive Installations: By default, the fasp.io Gateway configuration file,
gateway.toml, is located in the config directory
of the extracted archive:
./config/gateway.toml
SystemD Installations: The fasp.io Gateway configuration file,
gateway.toml, is located in the system /etc
directory:
/etc/fasp.io/gateway.toml
The gateway.toml included in the installation serves as an example. Modify this file to specify your ports, hostnames, and so on.
Logging Configuration File
Logging configuration is defined in logging.toml. This file is located in the same config directory as gateway.toml (location described above). Warning, error, and info logs are sent to the console by default. In the default logging.toml file, four loggers are made available:
gateway
– High-level logger for the gateway.s2s
– Stream-to-stream session class logger.fasp.io-cpp
– Logger for the Asio/C++ FASP SDK.fasp.io-c
– Logger for the FASP protocol.
For more information on how to configure logging, see the full reference at:
https://github.com/guangie88/spdlog_setup
Notes:
- The
level
setting is optional for both sinks and loggers. - The
level
for error logging iserr
, noterror
. - The
_st
suffix means single-threaded. - The
_mt
suffix means multi-threaded. syslog_sink
is thread-safe by default. No_mt
suffix is required.
The
spdlog
default logging format
is:[2014-10-31 23:46:59.678] [loggername] [info] Some message
For information on how to customize spdlog
formatting, see:
https://github.com/gabime/spdlog/wiki/3.-Custom-formatting