Skip to content
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

customize init script to log to base path that we desire #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/main/assembly/bin/rmt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ esac

lib_dir="$base_dir"/lib
log_dir="$base_dir"/log
log_dir=${LOG_BASE_PATH:=$log_dir}
echo "logging to ${log_dir} base path."
con_dir="$base_dir"/conf

log_file="$con_dir"/log4j2.xml
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<RegexFilter regex=".*socket error.*" onMatch="DENY" onMismatch="ACCEPT"/>
<Policies>
<TimeBasedTriggeringPolicy/>
<SizeBasedTriggeringPolicy size="128 MB"/>
<SizeBasedTriggeringPolicy size="1024 MB"/>
</Policies>
</RollingFile>

Expand All @@ -39,7 +39,7 @@
</PatternLayout>
<Policies>
<TimeBasedTriggeringPolicy/>
<SizeBasedTriggeringPolicy size="128 MB"/>
<SizeBasedTriggeringPolicy size="1024 MB"/>
</Policies>
</RollingFile>

Expand Down