[nama] Re: Logging
- From: "S. Massy" <lists@xxxxxxxxxxxx>
- To: nama@xxxxxxxxxxxxx
- Date: Tue, 10 Apr 2012 11:46:09 -0400
On Mon, Apr 09, 2012 at 07:30:17PM -1000, Joel Roth wrote:
> On Mon, Apr 09, 2012 at 05:02:14PM -0400, S. Massy wrote:
> > I really like how you
> > can get can get ecasound to log to file simply by defining
> > ECASOUND_LOGFILE to a string matching the file you want it to log to.
>
> Okay, the logfile will be determined by the NAMA_LOGFILE
> environment variable, with a default of $HOME/nama.log.
Great! But why not chuck it to STDERR unless the variable is defines?
This way one can even redirect logging as one wishes.
>
> For logging categories, I'm thinking of using multiple command
> flags. For example:
>
> nama -L fx -L setup -L graph
>
> An alternative approach might be to provide that information
> in .namarc.
I think the first alternative is fine. Possibly with a "-L help" option
to get a list of modules.
May your logging be fruitful.
Cheers,
S.M.
Other related posts: