Project

General

Profile

Revision 77db889c

ID77db889ce51ecf0a9eb4b5c1feef5e7405359aa5
Parent ea060d8c
Child a05a7791

Added by Aurelien BOMPARD over 14 years ago

Gestion de la rotation des logs par python lui-même

git-svn-id: https://vigilo-dev.si.c-s.fr/svn@3457 b22e2e97-25c9-44ff-b637-2e5ceca36478

View differences:

Makefile
18 18
	mkdir -p $(DESTDIR)$(HTTPD_DIR)
19 19
	ln -f -s $(SYSCONFDIR)/vigilo/$(NAME)/$(NAME).conf $(DESTDIR)$(HTTPD_DIR)/
20 20
	echo $(HTTPD_DIR)/$(NAME).conf >> INSTALLED_FILES
21
	install -p -m 644 -D deployment/logrotate $(DESTDIR)$(SYSCONFDIR)/logrotate.d/$(NAME)
22
	echo $(SYSCONFDIR)/logrotate.d/$(NAME) >> INSTALLED_FILES
23 21
	mkdir -p $(DESTDIR)/var/log/vigilo/$(NAME)
24 22

  
25 23
include buildenv/Makefile.common
deployment/settings.ini
145 145
formatter = generic
146 146

  
147 147
[handler_sql_log]
148
class = FileHandler
148
class = TimedRotatingFileHandler
149 149
args = ('/var/log/vigilo/vigigraph/sql.log','a')
150 150
level = DEBUG
151 151
formatter = generic
152
when = D
153
interval = 30
154
backupcount = 12
152 155

  
153 156
[handler_root_log]
154
class = FileHandler
157
class = TimedRotatingFileHandler
155 158
args = ('/var/log/vigilo/vigigraph/root.log','a')
156 159
level = DEBUG
157 160
formatter = generic
161
when = D
162
interval = 30
163
backupcount = 12
158 164

  
159 165
[handler_vigigraph_log]
160
class = FileHandler
166
class = TimedRotatingFileHandler
161 167
args = ('/var/log/vigilo/vigigraph/vigigraph.log','a')
162 168
level = DEBUG
163 169
formatter = generic
170
when = D
171
interval = 30
172
backupcount = 12
164 173

  
165 174
[handler_auth_log]
166
class = FileHandler
175
class = TimedRotatingFileHandler
167 176
args = ('/var/log/vigilo/vigigraph/auth.log','a')
168 177
level = DEBUG
169 178
formatter = generic
179
when = D
180
interval = 30
181
backupcount = 12
170 182

  
171 183
; If you create additional formatters, add them as a key to [formatters]
172 184
[formatter_generic]
pkg/vigigraph.mdv.spec
59 59
%dir %{_sysconfdir}/vigilo
60 60
%config(noreplace) %{_sysconfdir}/vigilo/%{module}
61 61
%{_sysconfdir}/httpd/conf/webapps.d/%{module}.conf
62
%config(noreplace) %{_sysconfdir}/logrotate.d/%{module}
63 62
%dir %{_localstatedir}/log/vigilo/
64 63
%attr(750,apache,apache) %{_localstatedir}/log/vigilo/%{module}
65 64
%{python_sitelib}/*

Also available in: Unified diff