Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
M
Micro_Services
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ali.saeed
Micro_Services
Commits
2cf8dd3a
Commit
2cf8dd3a
authored
May 02, 2024
by
Ali Saeed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update logback files
parent
23368cdb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
91 additions
and
14 deletions
+91
-14
logback.xml
invoicing-service/src/main/resources/logback.xml
+33
-3
logback.xml
replica-invoicing-service/src/main/resources/logback.xml
+29
-6
logback.xml
users-service/src/main/resources/logback.xml
+29
-5
No files found.
invoicing-service/src/main/resources/logback.xml
View file @
2cf8dd3a
...
@@ -6,7 +6,6 @@
...
@@ -6,7 +6,6 @@
</encoder>
</encoder>
</appender>
</appender>
<!-- Console appender -->
<appender
name=
"CONSOLE"
class=
"ch.qos.logback.core.ConsoleAppender"
>
<appender
name=
"CONSOLE"
class=
"ch.qos.logback.core.ConsoleAppender"
>
<encoder>
<encoder>
<pattern>
%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
</pattern>
<pattern>
%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
</pattern>
...
@@ -18,8 +17,39 @@
...
@@ -18,8 +17,39 @@
<appender-ref
ref=
"CONSOLE"
/>
<!-- Add the console appender reference -->
<appender-ref
ref=
"CONSOLE"
/>
<!-- Add the console appender reference -->
</logger>
</logger>
<root
level=
"error"
>
<appender
name=
"STASH"
class=
"net.logstash.logback.appender.LogstashTcpSocketAppender"
>
<destination>
localhost:5000
</destination>
<encoder
class=
"net.logstash.logback.encoder.LoggingEventCompositeJsonEncoder"
>
<providers>
<mdc
/>
<context
/>
<logLevel
/>
<loggerName
/>
<pattern>
<pattern>
{
"appName": "invoicing-service"
}
</pattern>
</pattern>
<threadName
/>
<message
/>
<logstashMarkers
/>
<stackTrace
/>
</providers>
</encoder>
</appender>
<logger
name=
"org.example"
level=
"DEBUG"
additivity=
"false"
>
<appender-ref
ref=
"FILE"
/>
<appender-ref
ref=
"FILE"
/>
<appender-ref
ref=
"CONSOLE"
/>
<!-- Add the console appender reference -->
<appender-ref
ref=
"CONSOLE"
/>
<appender-ref
ref=
"STASH"
/>
</logger>
<root
level=
"INFO"
>
<appender-ref
ref=
"CONSOLE"
/>
<appender-ref
ref=
"FILE"
/>
<appender-ref
ref=
"STASH"
/>
</root>
</root>
</configuration>
</configuration>
\ No newline at end of file
replica-invoicing-service/src/main/resources/logback.xml
View file @
2cf8dd3a
...
@@ -5,21 +5,44 @@
...
@@ -5,21 +5,44 @@
<pattern>
%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
</pattern>
<pattern>
%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
</pattern>
</encoder>
</encoder>
</appender>
</appender>
<!-- Console appender -->
<appender
name=
"CONSOLE"
class=
"ch.qos.logback.core.ConsoleAppender"
>
<appender
name=
"CONSOLE"
class=
"ch.qos.logback.core.ConsoleAppender"
>
<encoder>
<encoder>
<pattern>
%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
</pattern>
<pattern>
%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
</pattern>
</encoder>
</encoder>
</appender>
</appender>
<appender
name=
"STASH"
class=
"net.logstash.logback.appender.LogstashTcpSocketAppender"
>
<destination>
localhost:5000
</destination>
<encoder
class=
"net.logstash.logback.encoder.LoggingEventCompositeJsonEncoder"
>
<providers>
<mdc
/>
<context
/>
<logLevel
/>
<loggerName
/>
<pattern>
<pattern>
{
"appName": "replica-invoicing-service"
}
</pattern>
</pattern>
<threadName
/>
<message
/>
<logstashMarkers
/>
<stackTrace
/>
</providers>
</encoder>
</appender>
<logger
name=
"org.example"
level=
"DEBUG"
additivity=
"false"
>
<logger
name=
"org.example"
level=
"DEBUG"
additivity=
"false"
>
<appender-ref
ref=
"FILE"
/>
<appender-ref
ref=
"FILE"
/>
<appender-ref
ref=
"CONSOLE"
/>
<!-- Add the console appender reference -->
<appender-ref
ref=
"CONSOLE"
/>
<appender-ref
ref=
"STASH"
/>
</logger>
</logger>
<root
level=
"error"
>
<root
level=
"INFO"
>
<appender-ref
ref=
"FILE"
/>
<appender-ref
ref=
"CONSOLE"
/>
<appender-ref
ref=
"CONSOLE"
/>
<!-- Add the console appender reference -->
<appender-ref
ref=
"FILE"
/>
<appender-ref
ref=
"STASH"
/>
</root>
</root>
</configuration>
</configuration>
\ No newline at end of file
users-service/src/main/resources/logback.xml
View file @
2cf8dd3a
...
@@ -6,20 +6,44 @@
...
@@ -6,20 +6,44 @@
</encoder>
</encoder>
</appender>
</appender>
<!-- Console appender -->
<appender
name=
"CONSOLE"
class=
"ch.qos.logback.core.ConsoleAppender"
>
<appender
name=
"CONSOLE"
class=
"ch.qos.logback.core.ConsoleAppender"
>
<encoder>
<encoder>
<pattern>
%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
</pattern>
<pattern>
%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
</pattern>
</encoder>
</encoder>
</appender>
</appender>
<appender
name=
"STASH"
class=
"net.logstash.logback.appender.LogstashTcpSocketAppender"
>
<destination>
localhost:5000
</destination>
<encoder
class=
"net.logstash.logback.encoder.LoggingEventCompositeJsonEncoder"
>
<providers>
<mdc
/>
<context
/>
<logLevel
/>
<loggerName
/>
<pattern>
<pattern>
{
"appName": "users-service"
}
</pattern>
</pattern>
<threadName
/>
<message
/>
<logstashMarkers
/>
<stackTrace
/>
</providers>
</encoder>
</appender>
<logger
name=
"org.example"
level=
"DEBUG"
additivity=
"false"
>
<logger
name=
"org.example"
level=
"DEBUG"
additivity=
"false"
>
<appender-ref
ref=
"FILE"
/>
<appender-ref
ref=
"FILE"
/>
<appender-ref
ref=
"CONSOLE"
/>
<!-- Add the console appender reference -->
<appender-ref
ref=
"CONSOLE"
/>
<appender-ref
ref=
"STASH"
/>
</logger>
</logger>
<root
level=
"error"
>
<root
level=
"INFO"
>
<appender-ref
ref=
"FILE"
/>
<appender-ref
ref=
"CONSOLE"
/>
<appender-ref
ref=
"CONSOLE"
/>
<!-- Add the console appender reference -->
<appender-ref
ref=
"FILE"
/>
<appender-ref
ref=
"STASH"
/>
</root>
</root>
</configuration>
</configuration>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment