Mantis Bugtracker

Простой вид комментарии ] расширенный вид ] история ] печать ]
Номер Категория Серьезность Воспроизводимость Создан Изменен
0000139 [obex-data-server] General нововведение неприменима 2008-10-04 13:44 2009-10-21 20:13
Инициатор heston_james Видимость общая  
Ответственный skirsdeda
Приоритет низкий Решение решен  
Состояние закрыт   Версия продукта 0.3.4
Суть 0000139: Implement logging
Подробности This is a really minor feature/improvement idea that I've had for some time now and thought I would get your opinions on.

We curently just print all obex-data-server output to the command line, however, as the vast majority of people will likely end up running it as a daemon we have no way of watching or tracking what ods is doing when in lights-out mode.

I'm proposing we perhaps look at a logging module, like log4c which can have a rotating file handler attached to it so when running in daemon mode ods logs its output to /var/log/obex-data-server.log and rotates out as it grows.

I've never dealt with logging in C before so dont really know how plausable this is, however I've used log4j on JAVA projects in the past and found it a very clean way of handling this.

Cheers guys,

Heston
Дополнительные сведения http://log4c.sourceforge.net/ [^]
Tэги Нет прикрепленных тэгов.
Вложенные файлы

- Связи

-  Комментарии
(0000435)
skirsdeda (администратор)
2008-10-06 15:24
изменен: 2008-10-06 15:31

No need to use log4c or anything like that. Glib has all the necessary infrastructure (see http://library.gnome.org/devel/glib/stable/glib-Message-Logging.html [^] ). We just need to add a log_handler and it will just work.

(0000436)
heston_james (инициатор)
2008-10-06 16:29

Oh Great! that certainly makes life simpler. I think we should just look at a simple rotating file handler then, that should work nicely. :-)
(0000457)
skirsdeda (администратор)
2008-10-09 23:32

Marking this as low priority. This can be done after 0.4 is out.
(0000462)
Jo (инициатор)
2008-10-10 03:03

Quick question here.
Tadas, do you plan to release the ODS 0.3.5 or directly go to the release of ODS 4.0?
(0000463)
skirsdeda (администратор)
2008-10-10 03:13

Because of my lack of time and because ods svn is already being used widely, I plan to skip 0.3.5 and go straight for 0.4.
(0000466)
heston_james (инициатор)
2008-10-10 12:49

Yeah low priority is fine, its not in the least bit important.
(0000653)
skirsdeda (администратор)
2009-08-17 00:44

Added logging functionality in svn. Now it's possible to enable/disable debugging messages and log to syslog.

- история
Дата изменения Пользователь Поле Изменение
2008-10-04 13:44 heston_james Новый вопрос
2008-10-06 15:24 skirsdeda Комментарий добавлен: 0000435
2008-10-06 15:31 skirsdeda Комментарий изменен: 0000435
2008-10-06 15:35 skirsdeda Состояние новый => назначен
2008-10-06 15:35 skirsdeda Ответственный => skirsdeda
2008-10-06 16:29 heston_james Комментарий добавлен: 0000436
2008-10-09 23:32 skirsdeda Комментарий добавлен: 0000457
2008-10-09 23:32 skirsdeda Приоритет обычный => низкий
2008-10-09 23:32 skirsdeda Серьезность тривиальная => нововведение
2008-10-10 03:03 Jo Комментарий добавлен: 0000462
2008-10-10 03:13 skirsdeda Комментарий добавлен: 0000463
2008-10-10 12:49 heston_james Комментарий добавлен: 0000466
2009-08-17 00:43 skirsdeda Целевая версия => 0.4.5
2009-08-17 00:44 skirsdeda Комментарий добавлен: 0000653
2009-08-17 00:44 skirsdeda Состояние назначен => отработан
2009-08-17 00:44 skirsdeda Решен в версии => 0.4.5
2009-08-17 00:44 skirsdeda Решение открыт => решен
2009-10-21 20:13 skirsdeda Состояние отработан => закрыт


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker