# ================================================================ # MAIN SECTION # ---------------------------------------------------------------- # Contains mammoth configuration. # ================================================================ # Mandatory. [mammoth] # Optional as long as there are no [[mod]] objects (see later in this file); otherwise, mandatory. # Locates the directory in which mammoth should find all the modules. mods_dir = "./target/debug/" # Optional, default: no log. # Locates the file in which store the log output. log_file = "mammoth.log" # Optional, default: "warning" # Defines the severity of the log information. # File levels are available: # - "debug": output every log information, even if potentially sensible. # - "information": output almost every log information, discard sensible information. # - "warning": output warning information, i.e. for events that could possibly be unexpected or problematic. # - "error": output only errors breaking the regular execution. # - "critical": output only critical errors, i.e. errors forcing the application to exit with a bad return value. log_severity = "debug" # ================================================================ # HOST SECTION # ---------------------------------------------------------------- # Contains configuration about the available hosts. # ================================================================ # Mandatory (at least one). [[host]] # Optional, default: no name. # Defines the name of the host. # If defined, the host accepts only connections from the specified host name (as in virual hosts). hostname = "localhost" # Mandatory. # Defines on which port the current host is listening. listen = 8080 # Optional, default: no static directory. # Locates the directory from which serve static files. static_dir = "./tests/www" # ================================================================ # MOD SECTION # ---------------------------------------------------------------- # Contains configuration about the available modules. # A module is an external dynamic library (.dll in Windows, .so in # linux) containing special structures and function that add # functionality to Mammoth. # ================================================================ # Every module is optional for Mammoth. [[mod]] # Mandatory, needed to locate the file. name = "mod_test" # Unusual, can be used for small configurations. # In this case, this value is used to set an error flag into the "mod_test" module. config = "test_error"