diff --git a/neat.conf b/neat.conf index a5cee1c..c7f68b9 100644 --- a/neat.conf +++ b/neat.conf @@ -16,6 +16,15 @@ [DEFAULT] +# The directory, where log files will be created by the Neat services +logging_directory = /var/log/neat + +# The amount of log messages: +# 0 -- no logging +# 1 -- errors and warnings +# 2 -- errors, warnings, and other information messages +logging_level = 2 + # The host name and credentials for connecting to the MySQL database # specified in the format supported by SQLAlchemy sql_connection = mysql://nova:novamysqlpassword@controller/nova diff --git a/neat/config.py b/neat/config.py index 2de4840..762e71e 100644 --- a/neat/config.py +++ b/neat/config.py @@ -37,6 +37,8 @@ CONFIG_PATH = os.path.join(os.path.dirname(__file__), # These fields must present in the configuration file REQUIRED_FIELDS = [ + 'logging_directory', + 'logging_level', 'sql_connection', 'os_admin_tenant_name', 'os_admin_user',