
Новые сообщения [новые:0]
Дайджест
Горячие темы
Избранное [новые:0]
Форумы
Пользователи
Статистика
Статистика нагрузки
Мод. лог
Поиск
|
|
03.08.2015, 13:22
|
|||
|---|---|---|---|
|
|||
Playframerwork и разные лог файлы |
|||
|
#18+
Приветствую! Подскажите, как настроить в Playframework логирование в разные файлы. В частности нужно, чтобы внутри одного класса/метода писать данные в разные логи. Типа Код: java 1. 2. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
03.08.2015, 13:28
|
|||
|---|---|---|---|
|
|||
Playframerwork и разные лог файлы |
|||
|
#18+
qi_ip, Ну, RTFM же. RTFM Creating your own loggers Although it may be tempting to use the default logger everywhere, it’s generally a bad design practice. Creating your own loggers with distinct names allows for flexibile configuration, filtering of log output, and pinpointing the source of log messages. You can create a new logger using the Logger.apply factory method with a name argument: Код: java 1. A common strategy for logging application events is to use a distinct logger per class using the class name. The logging API supports this with a factory method that takes a class argument: Код: java 1. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
03.08.2015, 15:53
|
|||
|---|---|---|---|
|
|||
Playframerwork и разные лог файлы |
|||
|
#18+
По описанию создаю - файл в директории logs не создается :( ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
03.08.2015, 15:57
|
|||
|---|---|---|---|
|
|||
Playframerwork и разные лог файлы |
|||
|
#18+
qi_ipПо описанию создаю - файл в директории logs не создается :( Appender на месте? https://www.playframework.com/documentation/2.3.x/SettingsLogger ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|

start [/forum/topic.php?fid=59&mobile=1&tid=2125109]: |
0ms |
get settings: |
5ms |
get forum list: |
9ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
144ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
29ms |
get tp. blocked users: |
1ms |
| others: | 198ms |
| total: | 401ms |

| 0 / 0 |
