Skip to content

Commit 893bbc8

Browse files
committed
Merge pull request #130 from saz/syslog-support
allow logging via syslog
2 parents 5b4e976 + 2e0cbb4 commit 893bbc8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

templates/my.cnf.erb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ socket = <%= socket %>
44
[mysqld_safe]
55
socket = <%= socket %>
66
nice = 0
7+
<% if log_error == 'syslog' -%>
8+
syslog
9+
<% end -%>
710
[mysqld]
811
user = mysql
912
pid-file = <%= pidfile %>
@@ -25,7 +28,9 @@ thread_cache_size = 8
2528
myisam-recover = BACKUP
2629
query_cache_limit = 1M
2730
query_cache_size = 16M
31+
<% if log_error != 'syslog' -%>
2832
log_error = <%= log_error %>
33+
<% end -%>
2934
expire_logs_days = 10
3035
max_binlog_size = 100M
3136
<% if default_engine != 'UNSET' %>

0 commit comments

Comments
 (0)