[CORD-1357] Use new config in old logger
Change-Id: I109d922317d0d72ed4e694192dac6806bdf077a7
diff --git a/lib/xos-config/.gitignore b/lib/xos-config/.gitignore
index 161b154..1a050a8 100644
--- a/lib/xos-config/.gitignore
+++ b/lib/xos-config/.gitignore
@@ -1,2 +1,4 @@
.noseids
-build
\ No newline at end of file
+build
+XosConfig.egg-info
+dist
\ No newline at end of file
diff --git a/lib/xos-config/xosconfig/config-schema.yaml b/lib/xos-config/xosconfig/config-schema.yaml
index 5d30b86..b79905e 100644
--- a/lib/xos-config/xosconfig/config-schema.yaml
+++ b/lib/xos-config/xosconfig/config-schema.yaml
@@ -19,6 +19,8 @@
logging:
type: map
map:
+ logstash_hostport:
+ type: str
level:
type: str
channels:
diff --git a/lib/xos-config/xosconfig/default.py b/lib/xos-config/xosconfig/default.py
index eaea40a..02abaa6 100644
--- a/lib/xos-config/xosconfig/default.py
+++ b/lib/xos-config/xosconfig/default.py
@@ -1,7 +1,9 @@
DEFAULT_VALUES = {
'xos_dir': '/opt/xos',
'logging': {
+ 'file': '/var/log/xos.log',
'level': 'info',
- 'channels': ['file', 'console']
+ 'channels': ['file', 'console'],
+ 'logstash_hostport': 'cordloghost:5617'
}
}
\ No newline at end of file