Skip to content

Commit

Permalink
renamed .log extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Jackson committed Aug 20, 2012
1 parent 7f73c14 commit 5cb7c33
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions bin/storm
Expand Up @@ -241,7 +241,7 @@ def nimbus(klass="backtype.storm.daemon.nimbus"):
"""
cppaths = [STORM_DIR + "/conf"]
jvmopts = parse_args(confvalue("nimbus.childopts", cppaths)) + [
"-Dlogfile.name=nimbus",
"-Dlogfile.name=nimbus.log",
"-Dlogback.configurationFile=" + STORM_DIR + "/logback/cluster.xml",
]
exec_storm_class(
Expand All @@ -261,7 +261,7 @@ def supervisor(klass="backtype.storm.daemon.supervisor"):
"""
cppaths = [STORM_DIR + "/conf"]
jvmopts = parse_args(confvalue("supervisor.childopts", cppaths)) + [
"-Dlogfile.name=supervisor",
"-Dlogfile.name=supervisor.log",
"-Dlogback.configurationFile=" + STORM_DIR + "/logback/cluster.xml",
]
exec_storm_class(
Expand All @@ -282,7 +282,7 @@ def ui():
"""
cppaths = [STORM_DIR + "/conf"]
jvmopts = parse_args(confvalue("ui.childopts", cppaths)) + [
"-Dlogfile.name=ui",
"-Dlogfile.name=ui.log",
"-Dlogback.configurationFile=" + STORM_DIR + "/logback/cluster.xml",
]
exec_storm_class(
Expand All @@ -301,7 +301,7 @@ def drpc():
(https://github.com/nathanmarz/storm/wiki/Distributed-RPC)
"""
jvmopts = ["-Xmx768m",
"-Dlogfile.name=drpc",
"-Dlogfile.name=drpc.log",
"-Dlogback.configurationFile=" + STORM_DIR + "/logback/cluster.xml"
]
exec_storm_class(
Expand Down
4 changes: 2 additions & 2 deletions logback/cluster.xml
Expand Up @@ -2,9 +2,9 @@

<configuration scan="true" scanPeriod="60 seconds">
<appender name="A1" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${storm.home}/logs/${logfile.name}.log</file>
<file>${storm.home}/logs/${logfile.name}</file>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${storm.home}/logs/${logfile.name}.%i.log</fileNamePattern>
<fileNamePattern>${storm.home}/logs/${logfile.name}.%i</fileNamePattern>
<minIndex>1</minIndex>
<maxIndex>9</maxIndex>
</rollingPolicy>
Expand Down

0 comments on commit 5cb7c33

Please sign in to comment.