Change path to logging_target when server started by Astor

Dear all,

I have a question: I would like to set the logging_target property to a file that shall be written to some other path than the default one (which on Linux is apparently /tmp/tango-tango/ClassName/InstanceName/).
When I simply add the property logging_target = file::/path/to/the/logfile.log to the database of a device and I start the device manually from the terminal there is no problem. However, when I start it with Astor's Starter then this doesn't work. In Jive I can see for the former case that 'current logging target' is the same as 'logging target', for the latter case the 'current logging target' stays empty. If I start with Astor and logging_target is just FILE, or file::name.log the log-file gets written to the default directory.

Can you tell me what I need to do, to be able to start the servers from Astor and write the log-files to a directory of my choice?
Thanks a lot!
Cora
Astor starts device servers as a "tango" user, so the path where it would write logs needs to have adequate write permissions for that user.

I have found some other problems, though:
when setting full paths via logging_target, you can only use lower case paths. Tango will simply not be able to use a path with upper case letters (will not create/write any logs there). Also, full logging_target path needs to be pre-prepared, Tango will not create any missing subfolders by itself (in contrast, it does create all subfolders when the default path is used (e.g. when logging_target=FILE).

Cheers,
Matej
 
Register or login to create to post a reply.