forked from jhipster/generator-jhipster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
logback.xml.ejs
134 lines (124 loc) · 5.33 KB
/
logback.xml.ejs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<%#
Copyright 2013-2019 the original author or authors from the JHipster project.
This file is part of the JHipster project, see https://www.jhipster.tech/
for more information.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-%>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE configuration>
<configuration scan="true">
<include resource="org/springframework/boot/logging/logback/base.xml"/>
<logger name="<%=packageName%>" level="INFO"/>
<logger name="io.github.jhipster" level="WARN"/>
<%_ if (databaseType === 'cassandra') { _%>
<logger name="io.netty" level="WARN"/>
<%_ } _%>
<logger name="javax.activation" level="WARN"/>
<logger name="javax.mail" level="WARN"/>
<logger name="javax.xml.bind" level="WARN"/>
<logger name="ch.qos.logback" level="WARN"/>
<%_ if (databaseType === 'cassandra') { _%>
<logger name="com.datastax" level="WARN"/>
<%_ } _%>
<%_ if (cacheProvider === 'memcached') { _%>
<logger name="com.google.code.ssm" level="WARN"/>
<logger name="com.google.code.yanf4j" level="WARN"/>
<%_ } _%>
<%_ if (applicationType === 'microservice' || applicationType === 'gateway') { _%>
<logger name="com.netflix" level="WARN"/>
<logger name="com.netflix.config.sources.URLConfigurationSource" level="ERROR"/>
<logger name="com.netflix.discovery" level="INFO"/>
<%_ } _%>
<logger name="com.ryantenney" level="WARN"/>
<logger name="com.sun" level="WARN"/>
<logger name="com.zaxxer" level="WARN"/>
<%_ if (reactive) { _%>
<logger name="io.netty" level="WARN"/>
<%_ } _%>
<%_ if (searchEngine === 'elasticsearch') { _%>
<logger name="io.searchbox" level="WARN"/>
<%_ } _%>
<%_ if (!reactive) { _%>
<logger name="io.undertow" level="WARN"/>
<logger name="io.undertow.websockets.jsr" level="ERROR"/>
<%_ } _%>
<%_ if (cacheProvider === 'memcached') { _%>
<logger name="net.rubyeye.xmemcached" level="INFO"/>
<%_ } _%>
<%_ if (cacheProvider === 'ehcache') { _%>
<logger name="org.ehcache" level="WARN"/>
<%_ } _%>
<%_ if (cacheProvider === 'caffeine') { _%>
<logger name="com.github.benmanes.caffeine" level="WARN"/>
<%_ } _%>
<logger name="org.apache" level="WARN"/>
<logger name="org.apache.catalina.startup.DigesterFactory" level="OFF"/>
<logger name="org.bson" level="WARN"/>
<%_ if (searchEngine === 'elasticsearch') { _%>
<logger name="org.elasticsearch" level="WARN"/>
<%_ } _%>
<logger name="org.hibernate.validator" level="WARN"/>
<%_ if (databaseType === 'sql') { _%>
<logger name="org.hibernate" level="WARN"/>
<logger name="org.hibernate.ejb.HibernatePersistence" level="OFF"/>
<%_ } else if (databaseType === 'mongodb') { _%>
<logger name="org.mongodb.driver" level="WARN"/>
<%_ } else if (databaseType === 'couchbase') { _%>
<logger name="com.couchbase.client" level="WARN"/>
<logger name="org.testcontainers" level="INFO"/>
<logger name="org.github.couchmove" level="INFO"/>
<%_ } _%>
<%_ if (databaseType === 'mongodb' || databaseType === 'couchbase') { _%>
<logger name="org.reflections" level="WARN"/>
<%_ } _%>
<%_ if (cacheProvider === 'infinispan') { _%>
<logger name="org.infinispan" level="WARN"/>
<%_ } _%>
<%_ if (cacheProvider === 'memcached') { _%>
<logger name="net.rubyeye.xmemcached" level="INFO"/>
<%_ } _%>
<%_ if (prodDatabaseType === 'postgresql') { _%>
<logger name="org.postgresql.jdbc" level="WARN"/>
<%_ } _%>
<logger name="org.springframework" level="WARN"/>
<logger name="org.springframework.web" level="WARN"/>
<logger name="org.springframework.security" level="WARN"/>
<logger name="org.springframework.cache" level="WARN"/>
<%_ if (reactive) { _%>
<logger name="org.synchronoss" level="WARN"/>
<%_ } _%>
<logger name="org.thymeleaf" level="WARN"/>
<logger name="org.xnio" level="WARN"/>
<%_ if (messageBroker === 'kafka') { _%>
<logger name="kafka" level="WARN"/>
<logger name="org.I0Itec" level="WARN"/>
<%_ } _%>
<%_ if (prodDatabaseType === 'mssql') { _%>
<logger name="com.microsoft.sqlserver.jdbc.internals" level="WARN"/>
<%_ } _%>
<%_ if (reactive) { _%>
<logger name="reactor" level="WARN"/>
<%_ } _%>
<logger name="springfox" level="WARN"/>
<logger name="sun.rmi" level="WARN"/><% if (databaseType === 'sql') { %>
<logger name="liquibase" level="WARN"/>
<logger name="LiquibaseSchemaResolver" level="INFO"/><% } %>
<%_ if (applicationType === 'microservice' || applicationType === 'gateway') { _%>
<logger name="sun.net.www" level="INFO"/>
<%_ } _%>
<logger name="sun.rmi.transport" level="WARN"/>
<%_ if (cacheProvider === 'infinispan') { _%>
<logger name="unknown.jul.logger" level="WARN"/>
<%_ } _%>
<root level="WARN">
<appender-ref ref="CONSOLE"/>
</root>
</configuration>