|
|
|
Playframerwork и разные лог файлы
|
|||
|---|---|---|---|
|
#18+
Приветствую! Подскажите, как настроить в Playframework логирование в разные файлы. В частности нужно, чтобы внутри одного класса/метода писать данные в разные логи. Типа Код: java 1. 2. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 03.08.2015, 13:22 |
|
||
|
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, 13:28 |
|
||
|
Playframerwork и разные лог файлы
|
|||
|---|---|---|---|
|
#18+
По описанию создаю - файл в директории logs не создается :( ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 03.08.2015, 15:53 |
|
||
|
Playframerwork и разные лог файлы
|
|||
|---|---|---|---|
|
#18+
qi_ipПо описанию создаю - файл в директории logs не создается :( Appender на месте? https://www.playframework.com/documentation/2.3.x/SettingsLogger ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 03.08.2015, 15:57 |
|
||
|
|

start [/forum/topic.php?fid=59&msg=39021866&tid=2125109]: |
0ms |
get settings: |
12ms |
get forum list: |
19ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
143ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
37ms |
get tp. blocked users: |
1ms |
| others: | 257ms |
| total: | 487ms |

| 0 / 0 |
