On Wed, Jul 22, 2009 at 4:48 AM, David Baelde<[email protected]> wrote: > You can use on_metadata() (or on_track()) to do whatever you want with > the information that interests you. Below are two possibilities: log > with a special label that you can easily filter out, or print to a > dedicated file. > > on_metadata( > fun (m) -> log(label="blah",string_of(m)), > some_source) > > on_metadata( > fun (m) -> system("echo #{quote(string_of(m))} >> /path/to/sweet.log"), > some_source) > > You can also display the metadata m using custom functions that you > like, and so on. > -- > David >
It is so ironic that you posted this today, because I just struggled through this on my own setup to get logging operational on the 'washtub' interface. The only difference is that I used it to call an http log function so I can log to a database which is very handy. And coincidentally, I also used the on_metadata function. Chricken, this works great! Thanks for the post David! -- Chris Everest -- Chris Everest ------------------------------------------------------------------------------ _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
