Skip to content
Browse files

allow logging via syslog

  • Loading branch information...
1 parent af4b8bf commit 2e0cbb47baf107812913a8d56f6eed47f9b79191 @saz committed Nov 16, 2012
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 2e0cbb4

Please sign in to comment.
Something went wrong with that request. Please try again.