Page 1 of 1

Logging Client Access

Posted: Sat Aug 20, 2011 3:56 pm
by richiegecko
Hello,

is it possible to log which client accesses which file on twonky server and how long?

Richie

Re: Logging Client Access

Posted: Sat Aug 20, 2011 6:48 pm
by parnott
The only way I know of would be to turn on logging in Twonky. Then write a script/process to analyse the log file to pick out the client requests you are interested in.

Downsides-
1) The log file will be huge because of all the other information that is recorded in the log.
2) Don't believe there is any way to determine how long a client was accessing the server. Maybe there is, but I have not looked at Twonky log files for some time.

PS. Why do you want to do this?

Re: Logging Client Access

Posted: Sun Aug 21, 2011 10:31 am
by richiegecko
do you know whch loglevel i have to choose? build a script and "grep&sed" the needed entries should not be the problem.

by the way: twonky is running at home - it's only for my own interessest. the play instinct that comes when running a small home server.

Re: Logging Client Access

Posted: Sun Aug 21, 2011 5:29 pm
by parnott
These days I just turn on logging in the Maintenance config page.

The ini file does have this option-
# Log level (0:debug, 1:trace, 2:info, 3:warning, 4:error, 5:critical)
vlevel=4

My guess would be 1 or 2. But you may have to experiment.