On Sun, Jun 27, 2010 at 3:18 AM, Romain Beauxis <[email protected]> wrote:
> let conf_program =
>  Conf.string ~p:(conf_syslog#plug "program")
>    ~d:(Filename.basename Sys.executable_name)
>    "Name of the program."

This setting is a good idea and should give enough flexibility. I can
take care of overriding the default of that setting from liquidsoap,
so that it is more informative, and consistent with log files.

It could be "liquidsoap" by default (interactive and one-liner mode),
"<script>" (i.e. the main script name) when we are running a script,
or perhaps "liquidsoap/<script>" because script names are sometimes
not very informative. (This would be a bit better than program name
because when you run "liquidsoap foo.liq" the program name is still
liquidsoap but <script> is "foo".)

In comparison, "log.file.path" is "<script>.log" and <script> is
"default" by default and the main script name otherwise.

By the way we can use something like "<script>/<pid>" as a default (or
let users do it) so dtools doesn't need to do that part.

2 cents..
-- 
David

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to