1 |
theruck napsal(a): |
2 |
> si musis nastavit syslog-ng alebo cim to logujes aby to odchytaval a ukladal |
3 |
> do suboru |
4 |
> pozri si /etc/syslog-ng/syslog-ng.conf (ak ho pouzivas) alebo |
5 |
> http://gentoo-wiki.com/HOWTO_setup_PHP-Syslog-NG |
6 |
> |
7 |
> |
8 |
|
9 |
Zdravím, |
10 |
asi jsem se ¹patnì vyjádøil ony ty hlá¹ky jsou jak v logu (soubor |
11 |
massages) tak i na obrazovce. Proto si myslím ¾e je syslog-ng odchytává. |
12 |
Jinak jeho config soubor vypadá následovnì: |
13 |
|
14 |
|
15 |
# $Header: |
16 |
var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.conf.gentoo,v |
17 |
1.5 2005/05/12 05:46:10 mr_bones_ Exp $ |
18 |
# |
19 |
# Syslog-ng default configuration file for Gentoo Linux |
20 |
# contributed by Michael Sterrett |
21 |
|
22 |
options { |
23 |
chain_hostnames(off); |
24 |
sync(0); |
25 |
|
26 |
# The default action of syslog-ng 1.6.0 is to log a STATS line |
27 |
# to the file every 10 minutes. That's pretty ugly after a while. |
28 |
# Change it to every 12 hours so you get a nice daily update of |
29 |
# how many messages syslog-ng missed (0). |
30 |
stats(43200); |
31 |
}; |
32 |
|
33 |
source src { unix-stream("/dev/log"); internal(); pipe("/proc/kmsg"); }; |
34 |
|
35 |
destination messages { file("/var/log/messages"); }; |
36 |
|
37 |
# By default messages are logged to tty12... |
38 |
destination console_all { file("/dev/tty12"); }; |
39 |
# ...if you intend to use /dev/console for programs like xconsole |
40 |
# you can comment out the destination line above that references /dev/tty12 |
41 |
# and uncomment the line below. |
42 |
#destination console_all { file("/dev/console"); }; |
43 |
|
44 |
log { source(src); destination(messages); }; |
45 |
#log { source(src); destination(console_all); }; |
46 |
|
47 |
|
48 |
Co¾, jak pøiznávám, je defoltní nastavení. |
49 |
-- |
50 |
gentoo-user-cs@g.o mailing list |