Skip to content

Config.toml

This file must be in TOML format and will contains some required keys.

Database#

1
2
3
4
5
6
# Example placeholder configuration
[database]
host="{{pghost}}"
port={{pgport}}
user="{{pguser}}"
password="{{pgpassword}}"

host#

required string

Database hostname. Must point to a valid PostgreSQL database.

port#

number 5432

If your instance port is difference you can set it with this key.

user#

required string

Login name for the database user

password#

required string

Password for the database user

Logger#

You can define zero or several logger output. If none are defined it will use a default one with this configuration:

1
2
3
4
[[logger]]
type="file"
dir="/var/log/minecraft-monitor/"
level="warn"

type#

required string

The logger type. Available types:

  • file for rotated files
  • console for output on stdout
  • Other types may come in the future, you can suggest one by creating an issue.

level#

string warn

Maximum level of logging, all levels below are ignored. The hierarchy is:

fatal > error > warn > info > debug > trace.

dir#

string /var/log/minecraft-monitor/

For file logger. Set where the files should be located.