An improvement ODK Voice

Hi everybody,

My name is Sebastián, i'm new in the ODK world so I have a lot of
questions. I'm working in a ODKVoice project with Joaquin Blaya, and
we want to improve it improving the way manages the LOG files
generation. The thing is that actually ODKVoice generates just one and
unique LOG file wich is growing a lot and now is really big.We think
its better to make some modifications in the ODKVoice source code to
solve this, but as I told before I'm new here, I just knowing the
odkVoice's architecture. I have been analysing the folder structure/
code and I found a class in the package "org.odk.voice.servlet;"
called "LogServlet" that I guess is doing this job but I'm not sure of
this. So if someone can give me a little help it would be great.

thanks for advance
hope some feedback

Sebastián

sebastian,

i have a feeling this thread is going to get very developer-centric
very quickly. so let's continue it on opendatakit-developers.

i took a quick look at the code, and you are correct about this file
being the correct one. one good contribution you can make is switching
voice's logging to log4j. openmrs uses the same logging framework so
you can look at that code if you need inspiration...

yaw

··· On Fri, Jan 21, 2011 at 14:44, Sebastian Faundez wrote: > Hi everybody, > > My name is Sebastián, i'm new in the ODK world so I have a lot of > questions. I'm working in a ODKVoice project with Joaquin Blaya, and > we want to improve it improving the way manages the LOG files > generation. The thing is that actually ODKVoice generates just one and > unique LOG file wich is growing a lot and now is really big.We think > its better to make some modifications in the ODKVoice source code to > solve this, but as I told before I'm new here, I just knowing the > odkVoice's architecture. I have been analysing the folder structure/ > code and I found a class in the package "org.odk.voice.servlet;" > called "LogServlet" that I guess is doing this job but I'm not sure of > this. So if someone can give me a little help it would be great. > > thanks for advance > hope some feedback > > Sebastián > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en >

Sebastian,

It's good to hear you'll be using ODK Voice. ODK Voice already uses log4j.
If you look at the file log4j.properties, you'll see that it uses a 10MB
rolling log file. You can probably turn down the size, which will speed up
page load. The log servlet also has a parameter "bytes" that lets you
specify the number of bytes of logs you see, so for example,

/logs?bytes=100000

will show you the last 100K of logs. So you probably just want to (a) turn
down MaxFileSize in log4j.properties, and (b) change the link in
war/index.html from "admin/logs" to "admin/logs?bytes=100000" or something.

Best,
Adam

··· On Fri, Jan 21, 2011 at 6:59 PM, Yaw Anokwa wrote:

sebastian,

i have a feeling this thread is going to get very developer-centric
very quickly. so let's continue it on opendatakit-developers.

i took a quick look at the code, and you are correct about this file
being the correct one. one good contribution you can make is switching
voice's logging to log4j. openmrs uses the same logging framework so
you can look at that code if you need inspiration...

yaw

On Fri, Jan 21, 2011 at 14:44, Sebastian Faundez sebastian.faundez@gmail.com wrote:

Hi everybody,

My name is Sebastián, i'm new in the ODK world so I have a lot of
questions. I'm working in a ODKVoice project with Joaquin Blaya, and
we want to improve it improving the way manages the LOG files
generation. The thing is that actually ODKVoice generates just one and
unique LOG file wich is growing a lot and now is really big.We think
its better to make some modifications in the ODKVoice source code to
solve this, but as I told before I'm new here, I just knowing the
odkVoice's architecture. I have been analysing the folder structure/
code and I found a class in the package "org.odk.voice.servlet;"
called "LogServlet" that I guess is doing this job but I'm not sure of
this. So if someone can give me a little help it would be great.

thanks for advance
hope some feedback

Sebastián

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en