-
Notifications
You must be signed in to change notification settings - Fork 587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GRIFFIN-273] Griffin Service with user-defined log4j2 configuration #518
Closed
Closed
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
94d85b0
clean up the pom.xmls
5cd4bd2
clean up maven pom.xml
joohnnie eb54378
GRIFFIN-267 use call by name for logger
joohnnie 032ad12
Merge branch 'master' of github.com:apache/griffin
joohnnie 3d6ea4f
Merge branch 'master' of github.com:apache/griffin
joohnnie 118c0aa
ignore logs folder
joohnnie dad3b43
move the log after the application start because at that point the sp…
joohnnie 9b1914d
update dependency to use log4j2
joohnnie 190183a
add log4j2 config file
joohnnie 4e73db0
add logging.file config
joohnnie 9efe380
add logging.file config
joohnnie 137168e
exclude slf4j-log4j12 from hive-jdbc
joohnnie 5b18ca4
add line number to log4j2 configuration file to make it easier for tr…
joohnnie File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,4 +41,5 @@ measure/src/test/test_scala/* | |
|
||
.vscode | ||
|
||
environment.local.ts | ||
environment.local.ts | ||
logs/ |
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
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,43 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Configuration status="WARN"> | ||
<Properties> | ||
<Property name="PID">????</Property> | ||
<Property name="LOG_EXCEPTION_CONVERSION_WORD">%xwEx</Property> | ||
<Property name="LOG_LEVEL_PATTERN">%5p</Property> | ||
<Property name="CONSOLE_LOG_PATTERN">%clr{%d{yyyy-MM-dd HH:mm:ss.SSS}}{faint} %clr{${LOG_LEVEL_PATTERN}} %clr{${sys:PID}}{magenta} %clr{---}{faint} %clr{[%15.15t]}{faint} %clr{%-40.40c{1.}[%L]}{cyan} %clr{:}{faint} %m%n${sys:LOG_EXCEPTION_CONVERSION_WORD}</Property> | ||
<Property name="FILE_LOG_PATTERN">%d{yyyy-MM-dd HH:mm:ss.SSS} ${LOG_LEVEL_PATTERN} ${sys:PID} --- [%t] %-40.40c{1.}[%L] : %m%n${sys:LOG_EXCEPTION_CONVERSION_WORD}</Property> | ||
</Properties> | ||
<Appenders> | ||
<Console name="Console" target="SYSTEM_OUT" follow="true"> | ||
<PatternLayout pattern="${sys:CONSOLE_LOG_PATTERN}" /> | ||
</Console> | ||
<RollingFile name="File" fileName="${sys:LOG_FILE}" | ||
filePattern="logs/$${date:yyyy-MM}/application-%d{yyyy-MM-dd-HH}-%i.log.gz"> | ||
<PatternLayout> | ||
<Pattern>${sys:FILE_LOG_PATTERN}</Pattern> | ||
</PatternLayout> | ||
<Policies> | ||
<SizeBasedTriggeringPolicy size="10 MB" /> | ||
</Policies> | ||
<DefaultRollOverStrategy max = "10"/> | ||
</RollingFile> | ||
</Appenders> | ||
<Loggers> | ||
<Logger name="org.apache.catalina.startup.DigesterFactory" level="error" /> | ||
<Logger name="org.apache.catalina.util.LifecycleBase" level="error" /> | ||
<Logger name="org.apache.coyote.http11.Http11NioProtocol" level="warn" /> | ||
<logger name="org.apache.sshd.common.util.SecurityUtils" level="warn"/> | ||
<Logger name="org.apache.tomcat.util.net.NioSelectorPool" level="warn" /> | ||
<Logger name="org.crsh.plugin" level="warn" /> | ||
<logger name="org.crsh.ssh" level="warn"/> | ||
<Logger name="org.eclipse.jetty.util.component.AbstractLifeCycle" level="error" /> | ||
<Logger name="org.hibernate.validator.internal.util.Version" level="warn" /> | ||
<logger name="org.springframework.boot.actuate.autoconfigure.CrshAutoConfiguration" level="warn"/> | ||
<logger name="org.springframework.boot.actuate.endpoint.jmx" level="warn"/> | ||
<logger name="org.thymeleaf" level="warn"/> | ||
<Root level="info"> | ||
<AppenderRef ref="Console" /> | ||
<AppenderRef ref="File" /> | ||
</Root> | ||
</Loggers> | ||
</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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.