Menu

#18 Capturing logs

trunk
closed
Aex Aey
None
5
2018-05-15
2017-07-24
No

Whats the best way to capture the logs from the daemon?
Also is -v 9 the most verbose level?

Thanks

Discussion

  • Aex Aey

    Aex Aey - 2017-07-26
    • status: open --> accepted
    • assigned_to: Aex Aey
     
  • Aex Aey

    Aex Aey - 2017-07-26

    Same as with any other daemon - redirect stdout/stderr into whatever logging system is used. SystemD does that automatically. In a shellscript-style supervisor, "logger" tool would come in handy:

    ( pcapsipdump -f other-options-go-here | logger -t pcapsipdump ) &

    pcapsipdump doesn't emit all that many messages though, even at verbosity level 3, which is the most verbose.

    On the other hand, if you want to have a transaction log, for example CDR, or registration log - have a look at the trigger system (-t option). Right now it can only do things when .pcap file is opened/closed, but it should be easy to extend that to individual SIP messages.

     
  • Aex Aey

    Aex Aey - 2017-08-11
    • status: accepted --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB