Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
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
dataplatform
atlas
Commits
4deee50c
Commit
4deee50c
authored
Sep 08, 2017
by
ashutoshm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-1996: Updated Log4J configuration to limit size of log files.
parent
a5d52418
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
9 deletions
+20
-9
atlas-hive-import-log4j.xml
...ive-bridge/src/main/resources/atlas-hive-import-log4j.xml
+4
-2
atlas-log4j.xml
distro/src/conf/atlas-log4j.xml
+12
-5
atlas-log4j.xml
typesystem/src/main/resources/atlas-log4j.xml
+4
-2
No files found.
addons/hive-bridge/src/main/resources/atlas-hive-import-log4j.xml
View file @
4deee50c
...
@@ -27,11 +27,13 @@
...
@@ -27,11 +27,13 @@
</layout>
</layout>
</appender>
</appender>
<appender
name=
"FILE"
class=
"org.apache.log4j.
Daily
RollingFileAppender"
>
<appender
name=
"FILE"
class=
"org.apache.log4j.RollingFileAppender"
>
<param
name=
"File"
value=
"${atlas.log.dir}/${atlas.log.file}"
/>
<param
name=
"File"
value=
"${atlas.log.dir}/${atlas.log.file}"
/>
<param
name=
"Append"
value=
"true"
/>
<param
name=
"Append"
value=
"true"
/>
<layout
class=
"org.apache.log4j.PatternLayout"
>
<layout
class=
"org.apache.log4j.PatternLayout"
>
<param
name=
"ConversionPattern"
value=
"%d %-5p - [%t:%x] ~ %m (%C{1}:%L)%n"
/>
<param
name=
"ConversionPattern"
value=
"%d %-5p - [%t:%x] ~ %m (%C{1}:%L)%n"
/>
<param
name=
"maxFileSize"
value=
"100MB"
/>
<param
name=
"maxBackupIndex"
value=
"20"
/>
</layout>
</layout>
</appender>
</appender>
...
@@ -42,7 +44,7 @@
...
@@ -42,7 +44,7 @@
</logger>
</logger>
<logger
name=
"com.thinkaurelius.titan"
additivity=
"false"
>
<logger
name=
"com.thinkaurelius.titan"
additivity=
"false"
>
<level
value=
"
info
"
/>
<level
value=
"
warn
"
/>
<appender-ref
ref=
"FILE"
/>
<appender-ref
ref=
"FILE"
/>
</logger>
</logger>
...
...
distro/src/conf/atlas-log4j.xml
View file @
4deee50c
...
@@ -27,35 +27,42 @@
...
@@ -27,35 +27,42 @@
</layout>
</layout>
</appender>
</appender>
<appender
name=
"FILE"
class=
"org.apache.log4j.
Daily
RollingFileAppender"
>
<appender
name=
"FILE"
class=
"org.apache.log4j.RollingFileAppender"
>
<param
name=
"File"
value=
"${atlas.log.dir}/${atlas.log.file}"
/>
<param
name=
"File"
value=
"${atlas.log.dir}/${atlas.log.file}"
/>
<param
name=
"Append"
value=
"true"
/>
<param
name=
"Append"
value=
"true"
/>
<layout
class=
"org.apache.log4j.PatternLayout"
>
<layout
class=
"org.apache.log4j.PatternLayout"
>
<param
name=
"ConversionPattern"
value=
"%d %-5p - [%t:%x] ~ %m (%C{1}:%L)%n"
/>
<param
name=
"ConversionPattern"
value=
"%d %-5p - [%t:%x] ~ %m (%C{1}:%L)%n"
/>
<param
name=
"maxFileSize"
value=
"100MB"
/>
<param
name=
"maxBackupIndex"
value=
"20"
/>
</layout>
</layout>
</appender>
</appender>
<appender
name=
"AUDIT"
class=
"org.apache.log4j.
Daily
RollingFileAppender"
>
<appender
name=
"AUDIT"
class=
"org.apache.log4j.RollingFileAppender"
>
<param
name=
"File"
value=
"${atlas.log.dir}/audit.log"
/>
<param
name=
"File"
value=
"${atlas.log.dir}/audit.log"
/>
<param
name=
"Append"
value=
"true"
/>
<param
name=
"Append"
value=
"true"
/>
<layout
class=
"org.apache.log4j.PatternLayout"
>
<layout
class=
"org.apache.log4j.PatternLayout"
>
<param
name=
"ConversionPattern"
value=
"%d %x %m%n"
/>
<param
name=
"ConversionPattern"
value=
"%d %x %m%n"
/>
<param
name=
"maxFileSize"
value=
"100MB"
/>
<param
name=
"maxBackupIndex"
value=
"20"
/>
</layout>
</layout>
</appender>
</appender>
<appender
name=
"METRICS"
class=
"org.apache.log4j.
Daily
RollingFileAppender"
>
<appender
name=
"METRICS"
class=
"org.apache.log4j.RollingFileAppender"
>
<param
name=
"File"
value=
"${atlas.log.dir}/metric.log"
/>
<param
name=
"File"
value=
"${atlas.log.dir}/metric.log"
/>
<param
name=
"Append"
value=
"true"
/>
<param
name=
"Append"
value=
"true"
/>
<layout
class=
"org.apache.log4j.PatternLayout"
>
<layout
class=
"org.apache.log4j.PatternLayout"
>
<param
name=
"ConversionPattern"
value=
"%d %x %m%n"
/>
<param
name=
"ConversionPattern"
value=
"%d %x %m%n"
/>
<param
name=
"maxFileSize"
value=
"100MB"
/>
</layout>
</layout>
</appender>
</appender>
<appender
name=
"FAILED"
class=
"org.apache.log4j.
Daily
RollingFileAppender"
>
<appender
name=
"FAILED"
class=
"org.apache.log4j.RollingFileAppender"
>
<param
name=
"File"
value=
"${atlas.log.dir}/failed.log"
/>
<param
name=
"File"
value=
"${atlas.log.dir}/failed.log"
/>
<param
name=
"Append"
value=
"true"
/>
<param
name=
"Append"
value=
"true"
/>
<layout
class=
"org.apache.log4j.PatternLayout"
>
<layout
class=
"org.apache.log4j.PatternLayout"
>
<param
name=
"ConversionPattern"
value=
"%d %m"
/>
<param
name=
"ConversionPattern"
value=
"%d %m"
/>
<param
name=
"maxFileSize"
value=
"100MB"
/>
<param
name=
"maxBackupIndex"
value=
"20"
/>
</layout>
</layout>
</appender>
</appender>
...
@@ -82,7 +89,7 @@
...
@@ -82,7 +89,7 @@
</logger>
</logger>
<logger
name=
"com.thinkaurelius.titan"
additivity=
"false"
>
<logger
name=
"com.thinkaurelius.titan"
additivity=
"false"
>
<level
value=
"
info
"
/>
<level
value=
"
warn
"
/>
<appender-ref
ref=
"FILE"
/>
<appender-ref
ref=
"FILE"
/>
</logger>
</logger>
...
...
typesystem/src/main/resources/atlas-log4j.xml
View file @
4deee50c
...
@@ -27,12 +27,14 @@
...
@@ -27,12 +27,14 @@
</layout>
</layout>
</appender>
</appender>
<appender
name=
"AUDIT"
class=
"org.apache.log4j.
Daily
RollingFileAppender"
>
<appender
name=
"AUDIT"
class=
"org.apache.log4j.RollingFileAppender"
>
<param
name=
"File"
value=
"${atlas.log.dir}/audit.log"
/>
<param
name=
"File"
value=
"${atlas.log.dir}/audit.log"
/>
<param
name=
"Append"
value=
"true"
/>
<param
name=
"Append"
value=
"true"
/>
<param
name=
"Threshold"
value=
"debug"
/>
<param
name=
"Threshold"
value=
"debug"
/>
<layout
class=
"org.apache.log4j.PatternLayout"
>
<layout
class=
"org.apache.log4j.PatternLayout"
>
<param
name=
"ConversionPattern"
value=
"%d %x %m%n"
/>
<param
name=
"ConversionPattern"
value=
"%d %x %m%n"
/>
<param
name=
"maxFileSize"
value=
"100MB"
/>
<param
name=
"maxBackupIndex"
value=
"20"
/>
</layout>
</layout>
</appender>
</appender>
...
@@ -71,7 +73,7 @@
...
@@ -71,7 +73,7 @@
</logger>
</logger>
<logger
name=
"com.thinkaurelius.titan"
additivity=
"false"
>
<logger
name=
"com.thinkaurelius.titan"
additivity=
"false"
>
<level
value=
"
info
"
/>
<level
value=
"
warn
"
/>
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"console"
/>
</logger>
</logger>
...
...
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