-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fixes #12-incorrect-log-choose
- Loading branch information
Showing
29 changed files
with
593 additions
and
293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
server: | ||
port: 8083 | ||
address: 0.0.0.0 | ||
logging: | ||
config: config/logback-file.xml | ||
|
||
nodes: | ||
- name: myself | ||
host: localhost | ||
agentPort: 8085 | ||
myself: true | ||
|
||
choices: | ||
- group: АнаЛог | ||
plainLogs: | ||
- ${user.dir}/log/${APP_NAME}.log as "Логи АнаЛога :-)" | ||
|
||
# - group: Микросервисы в Docker | ||
# pathBase: /micros/ | ||
# plainLogs: | ||
# - toffee/log/toffee.log as ToFFee (selected) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<configuration scan="true" scanPeriod="10 seconds"> | ||
<include resource="org/springframework/boot/logging/logback/defaults.xml"/> | ||
|
||
<!--<editor-fold desc="Консольный аппендер">--> | ||
<property name="CONSOLE_LOG_PATTERN" | ||
value="%clr(%d{HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) - %clr([%15.15t]){faint} - %clr(%-40.40logger{39}){cyan} : %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}"/> | ||
|
||
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> | ||
<encoder> | ||
<charset>UTF-8</charset> | ||
<pattern>${CONSOLE_LOG_PATTERN}</pattern> | ||
</encoder> | ||
</appender> | ||
<!--</editor-fold>--> | ||
|
||
<!-- Умолчательный (корневой) уровень логирования и аппендер --> | ||
<root level="INFO"> | ||
<appender-ref ref="CONSOLE"/> | ||
</root> | ||
|
||
<!-- ================================== Прикладные логгеры (от бизнес-логики) ================================ --> | ||
<logger name="tech.toparvion.analog" level="TRACE"/> | ||
<!-- ===================================== Системные логгеры (от библиотек) ================================== --> | ||
|
||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<configuration scan="true" scanPeriod="30 seconds"> | ||
<include resource="org/springframework/boot/logging/logback/defaults.xml"/> | ||
|
||
<!--<editor-fold desc="Файловый аппендер">--> | ||
<property name="FILE_LOG_PATTERN" | ||
value="%d{ISO8601} ${LOG_LEVEL_PATTERN:-%5p} [%t] - %-40.40logger{39} : %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}"/> | ||
|
||
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
<file>log/${APP_NAME}.log</file> | ||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> | ||
<!-- daily rollover. Make sure the path matches the one in the file element or else | ||
the rollover logs are placed in the working directory. --> | ||
<fileNamePattern>log/${APP_NAME}_%d{yyyy-MM-dd}.%i.log</fileNamePattern> | ||
<maxFileSize>15MB</maxFileSize> | ||
<maxHistory>30</maxHistory> | ||
</rollingPolicy> | ||
<encoder> | ||
<charset>UTF-8</charset> | ||
<pattern>${FILE_LOG_PATTERN}</pattern> | ||
</encoder> | ||
</appender> | ||
<!--</editor-fold>--> | ||
|
||
<!-- Умолчательный (корневой) уровень логирования и аппендер --> | ||
<root level="INFO"> | ||
<appender-ref ref="FILE"/> | ||
</root> | ||
|
||
<!-- ================================== Прикладные логгеры (от бизнес-логики) ================================ --> | ||
<logger name="tech.toparvion.analog" level="DEBUG"/> | ||
<!-- ===================================== Системные логгеры (от библиотек) ================================== --> | ||
|
||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
docker.url=<specify your own> | ||
docker.registry.url=<specify your own> | ||
docker.registry.username=<specify your own> | ||
docker.registry.password=<specify your own> | ||
docker.registry.email=<specify your own> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.