>setting up the log as a queue

is is a queue - all worker queuing there log lines in to this queue

>and every log write enqueues a line to the log

still runnig this way

>we may have a logger thread

we have one - the MainThread - because logging is a central function in 
assp

>which will run "lazy" picking up

hmmm ... "lazy" - to log, or not to log, that is the question :):):)

>picking up (popping if you prefer) items from the
queue and writing them to the log

still running this way

>I'm not sure I'd like it;

I know you like it Andrea - all is running well, same like your suggestion 
- except the lazyness, assp is doing nothing "lazy". Everything is done as 
fast as possible, include the logging.
By the way: how would we had found the reason for a crash, without a 
permanent logging mechanism? 

Be sure, delayed logging will never become a feature in assp. Like in 
Trevors case, there are several possible solutions, and everyone can 
change the code to its needs.

Thomas



Von:    Grayhat <[email protected]>
An:     [email protected], 
Datum:  17.02.2014 18:18
Betreff:        Re: [Assp-test] ASSP log file update frequency




> I think the possibly maximum is around 50 seconds. The MainThread is 
> monitored by the MaintThread for actions. If the delay is too long,
> it may happen that the assp process will restart.

the only real solution (assuming we need it ... and I'm not sure about
it) would be setting up the log as a queue so that each and every log
write enqueues a line to the log, then we may have a logger thread
which will run "lazy" picking up (popping if you prefer) items from the
queue and writing them to the log... still, I'm not sure I'd like it;
also, and since we're at it, I don't think this is an ASSP issue rather
a fail2ban one

------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk

_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test




DISCLAIMER:
*******************************************************
This email and any files transmitted with it may be confidential, legally 
privileged and protected in law and are intended solely for the use of the 

individual to whom it is addressed.
This email was multiple times scanned for viruses. There should be no 
known virus in this email!
*******************************************************

------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test

Reply via email to