Skip to content

Commit

Permalink
Better default values for log parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
jjuarez committed Jan 27, 2017
1 parent 0179897 commit 73d9c31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions data/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
level: 'INFO'
appenders:
- Console
- File
file: '/opt/solr/logs/solr.log'
pattern: '%-4r [%t] %-5p %c %x - %m%n'
jetty::configuration:
modules:
server:
Expand Down
4 changes: 2 additions & 2 deletions templates/log4j.properties.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<%= @log %>
<% if @log %>
log4j.rootLogger=<%= @log.fetch('level', 'INFO') %>, <%= @log.fetch('appenders', ['Console']).join(',') %>
#
# Console appender
Expand All @@ -15,4 +15,4 @@ log4j.appender.File.layout=org.apache.log4j.PatternLayout
log4j.appender.File.layout.ConversionPattern=<%= @log['pattern'] %>
log4j.appender.File.File=<%= @log['file'] %>
log4j.appender.File.append=true

<% end %>

0 comments on commit 73d9c31

Please sign in to comment.