[pso] logging in kernel space
Bogdan Tenea
tenea.bogdan at gmail.com
Mon Jun 1 14:33:52 EEST 2009
As avea nevoie sa creez mai multe surse de logging, sa trimit tot in
kern.log nu ma ajuta foarte mult. Ramane cel mai safe sa scriu direct in
fisiere?
2009/6/1 Razvan Deaconescu <razvan.deaconescu at cs.pub.ro>
> On Mon, 2009-06-01 at 13:32 +0300, Bogdan Tenea wrote:
> > Am nevoie sa transmit o informatie in userspace si acesta sa si ramana
> > stocata undeva. Cel mai simplu ar fi sa stochez acea informatie in
> > fisiere de log.
> > Intrebarea e: cum ar fi cel mai bine sa procedez - deschid direct
> > fisierul si scriu in el sau am o alta metoda mai buna (cum ar fi
> > interactionarea cu syslogd) ?
>
> Errr ... printk stocheaza toate mesajele in /var/log/syslog
> si /var/log/kern.log. La consola sunt afisate doar cele cu un nivel de
> logging suficient de mare. Jurnalizarea in /var/log/kern.log nu ajuta?
>
> Daca vrei o personalizare mai buna foloseste klogd[1][2][3]
>
> Razvan
>
> [1]
> http://www.linuxforums.org/forum/linux-kernel/30146-communicating-between-user-space-kernel-space.html
> [2] http://www.linuxjournal.com/article/4058
> [3] http://linux.die.net/man/8/klogd
>
> _______________________________________________
> pso mailing list
> pso at cursuri.cs.pub.ro
> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/pso/attachments/20090601/a825d2c6/attachment.htm>
More information about the pso
mailing list