Skip to content

Commit 1abb5b9

Browse files
committed
Added json formatted Z2 like log
1 parent 9348468 commit 1abb5b9

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

base.cfg

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
extensions =
44
mr.developer
55
allow-picked-versions = false
6+
show-picked-versions = true
67

78
parts =
89
omelette
@@ -93,17 +94,17 @@ zcml-additional =
9394
<include package="plone.app.async" file="multi_db_instance.zcml" />
9495

9596
event-log-custom =
97+
<logfile>
98+
path ${buildout:directory}/var/log/${:_buildout_section_name_}.log
99+
level INFO
100+
</logfile>
96101
<syslog>
97102
address ${port:logs-server}
98103
facility local3
99104
format %(asctime)s ${facts:hostname} zope[%(process)s]: ${port:cluster} ${:_buildout_section_name_} [%(levelname)s] %(name)s | %(message)s
100105
dateformat %b %d %H:%M:%S
101106
level info
102107
</syslog>
103-
<logfile>
104-
path ${buildout:directory}/var/log/${:_buildout_section_name_}.log
105-
level INFO
106-
</logfile>
107108

108109
environment-vars =
109110
PYTHON_EGG_CACHE ${buildout:directory}/python-eggs
@@ -132,6 +133,7 @@ eggs =
132133
zc.z3monitor
133134
imio.prometheus
134135
collective.big.bang
136+
ftw.structlog
135137

136138
zcml =
137139
Products.PloneMeeting-overrides
@@ -141,6 +143,7 @@ zcml =
141143
collective.monitor
142144
imio.prometheus
143145
collective.big.bang
146+
ftw.structlog
144147

145148
[instance-async]
146149
<= instance1

versions.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ zc.buildout = 2.13.3
33
setuptools = 44.1.1
44
pip = 20.3.4
55

6+
ftw.structlog = 1.3.1
7+
# Required by:
8+
# ftw.structlog
9+
tzlocal = 2.1
10+
611
imio.prometheus = 1.0.0
712
collective.big.bang = 1.0a3
813

0 commit comments

Comments
 (0)