GWT DevMode : logging to a log file

80 Aufrufe
Direkt zur ersten ungelesenen Nachricht

karthik reddy

ungelesen,
08.02.2011, 15:16:2908.02.11
an google-we...@googlegroups.com
By default all the GWT.log(.....) statements log to the console . (this is not desirable for me because there is no way for me to do a "Clear" on the logs periodically and that affects my capability to debug).

So, I am trying to direct all my GWT.log(...) messages to a file which I can constantly clean up and start with a clean slate. 

I figured a way to do it: use the -logdir  option of the GWT compiler and pass the logging directory. But the one issue i have with this is ,  the logs are scattered across multiple files. (a new log file with a slightly different name gets created each time you re-load the application ). So, in essence I am NOT able to get the messages to be directed to a SINGLE file.   Is there a way to do it ?? 

Any thoughts/pointers would are much appreciated. 

Thomas Broyer

ungelesen,
08.02.2011, 15:45:0808.02.11
an google-we...@googlegroups.com

karthik reddy

ungelesen,
08.02.2011, 16:45:3608.02.11
an google-we...@googlegroups.com
I just took a look at the documentation at http://code.google.com/webtoolkit/doc/latest/DevGuideLogging.html  and it seems like FileHandler is not supported .  There is a line in the documentation that seems to indicate this:

The following classes are not emulated at all:

ErrorManager and LoggingPermission (not currently an issue in client logging)
FileHandler

Thomas Broyer

ungelesen,
08.02.2011, 20:52:1608.02.11
an google-we...@googlegroups.com
I understand it as that you cannot use the class FileHandler in your client code, which doesn't mean you cannot use it in your logging.properties configuration files when launching DevMode.

Приладышев Владимир

ungelesen,
08.02.2011, 15:20:1608.02.11
an Google Web Toolkit
Здраствуйте хочу предложить новую платежную систему

http://www.paybox.me/r/prgold

В Интернете продвигается новая платежная система - PayBox.

Так как она только в развитии - регистрация БЕСПЛАТНАЯ, и на счет
сразу ложится сумма в $25.

Каждый день, если Вы посещаете сайт, добавляется еще $20.

Аналогичным образом запускались системы Yandex-деньги и деньги
Mail.ru.
Таким образом компания привлекает людей, которые в будущем будут
пользоваться их услугами,
сегодня они дарят бонусы всем первым клиентам.
Акция не постоянная, спешите поучаствовать!
Никаких вложений от Вас не потребуется, просто переходите ссылке и
регистрируйтесь:

http://www.paybox.me/r/prgold

Если Вы плохо знаете английский, сохраните сначала инструкцию по
регистрациии
1. После открытия страницы справа нажмите на "Click Here to Join Now!"
(выделено голубым цветом).
2. Придумайте и введите логин, эл. почту, пароль (2 раза), поставьте
галочку слева от надписи "I agree to the Terms of Service", нажмите
кнопку "Continue>>".
3. На новой странице введите ещё раз почту и нажмите кнопку
"Subscribe".

4. В открывшемся новом окне введите строку с картинки и нажмите кнопку
"Subscribe".
5. Закройте окно, зайдите на указанный Вами е-мейл и активируйтесь по
ссылке.

Все готово! 25$ уже начислено!

Теперь заходите в свой аккаунт каждый день 2-3 раза и Вам будет
начисляться новые бонусы по 20$ за каждый день!

Adligo

ungelesen,
12.02.2011, 17:07:4512.02.11
an Google Web Toolkit
Hi,

I know if you use the Adligo i_log api you can send your log
messages to a Servlet and log them that way.

Cheers,
Scott
Allen antworten
Antwort an Autor
Weiterleiten
0 neue Nachrichten