is it possible to write to some my log file...just like user space program? - Linux

This is a discussion on is it possible to write to some my log file...just like user space program? - Linux ; Hi... if I use printk () funciton from my device module... it goes to dmesg... is it possible to write to some my log file...just like user space program? Thansk......

+ Reply to Thread
Results 1 to 2 of 2

Thread: is it possible to write to some my log file...just like user space program?

  1. is it possible to write to some my log file...just like user space program?


    Hi...
    if I use printk () funciton from my device module... it goes to dmesg...

    is it possible to write to some my log file...just like user space
    program?

    Thansk...



  2. Re: is it possible to write to some my log file...just like user space program?

    google-rambo88 coughed up some electrons that declared:

    >
    > Hi...
    > if I use printk () funciton from my device module... it goes to
    > dmesg...
    >
    > is it possible to write to some my log file...just like user space
    > program?
    >
    > Thansk...


    Generally, one would configure a syslog daemon (syslogd or syslog-ng) to do
    this (distro default config usually does this, to /var/log/messages). They
    actually are available from /proc/kmsg too (which is where syslog gets
    them).

    HTH

    Tim



+ Reply to Thread