config/log.yml in betterlog-0.3.0 vs config/log.yml in betterlog-0.4.0
- old
+ new
@@ -11,20 +11,22 @@
unknown: red
formats:
default: &default_format >
{%lt%timestamp} {%5s%severity}
"{%0.<%= ENV.fetch('COLUMNS', 80).to_i / 2 %>%message}"
+ {host}
{location}
{file}{-%O%backtrace}{-%O%meta}
d: *default_format
long: &long_format |
timestamp: {%lt%timestamp}
severity: {severity}
message: "{message}"
metric: {metric} {value} {type}
error_class: {error_class}
backtrace: {%O%backtrace}
+ host: {host}
location: {location}
file: {file}
meta: {%O%meta}\n
l: *long_format
legacy: >
@@ -41,7 +43,23 @@
- /usr/local/var/log/redis.log
elasticsearch:
- /usr/local/var/log/elasticsearch.log
legacy_supported: yes
test: *development
-staging: *development
-production: *development
+staging:
+ <<: *development
+ sink:
+ namespace: betterlog
+ source: betterlog-app
+ cluster:
+ name: betterlog
+ zone: europe-west1-b
+ project: project-42
+production:
+ <<: *development
+ sink:
+ namespace: betterlog
+ source: betterlog-app
+ cluster:
+ name: betterlog
+ zone: europe-west1-b
+ project: project-666