Browse files

Merge pull request #130 from saz/syslog-support

allow logging via syslog
  • Loading branch information...
2 parents 5b4e976 + 2e0cbb4 commit 893bbc824ab4563523073b7dff9b4661405d5e0d @hunner hunner committed Jan 9, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 templates/my.cnf.erb
View
5 templates/my.cnf.erb
@@ -4,6 +4,9 @@ socket = <%= socket %>
[mysqld_safe]
socket = <%= socket %>
nice = 0
+<% if log_error == 'syslog' -%>
+syslog
+<% end -%>
[mysqld]
user = mysql
pid-file = <%= pidfile %>
@@ -25,7 +28,9 @@ thread_cache_size = 8
myisam-recover = BACKUP
query_cache_limit = 1M
query_cache_size = 16M
+<% if log_error != 'syslog' -%>
log_error = <%= log_error %>
+<% end -%>
expire_logs_days = 10
max_binlog_size = 100M
<% if default_engine != 'UNSET' %>

0 comments on commit 893bbc8

Please sign in to comment.