savonet / liquidsoap

Liquidsoap is a statically typed scripting general-purpose language with dedicated operators and backend for all thing media, streaming, file generation, automation, HTTP backend and more.
http://liquidsoap.info
GNU General Public License v2.0
1.39k stars 128 forks source link

Question: change log directory at compile time #325

Closed rmens closed 8 years ago

rmens commented 8 years ago

After compiling liquidsoap with:

./configure --enable-debugging --disable-graphics --with-user=liquidsoap --with-group=liquidsoap --sysconfdir=/etc

It seems to create te default logging dir /usr/local/var/log/liquidsoap but i'd like that to be /var/log/liquidsoap and couldn't find a configure parameter to pass. Any idea how to do this?

S54B32 commented 8 years ago

Creating the /var/log/liquidsoap directory and setting your scripts to log to that directory would accomplish the same thing

Is there a reason you want to do this at compilation rather than after?

set("log.file", true)
set("log.file.path", "/var/log/liquidsoap/<script>.log")
toots commented 8 years ago

Thks for the explanation @S54B32 !