Daemon Wrapper Log

Wrapper Log File

Under special circumstances it might be necessary to change the location of the wrapper.logs file which is used within the wrapper.conf file. This can be influenced by changing the configuration. The default value for the wrapper.logfile is defined as follows:

# Log file to use for wrapper output logging.
wrapper.logfile=../logs/wrapper.log

The value for the wrapper.logfile can be either changed by using the following configuration or by the different method explained in generatorConfigurations.

<project>
  ...
  <build>
    </plugins>
      <plugin>
        .
        .
        <configuration>
          <daemons>
            <daemon>
              <id>daemon-1</id>
              <mainClass>org.codehaus.mojo.appassembler.example.helloworld.HelloWorld</mainClass>
              <commandLineArguments>
                <commandLineArgument>argument_one</commandLineArgument>
                <commandLineArgument>argument_two</commandLineArgument>
              </commandLineArguments>
              <wrapperLogFile>xyz.log</wrapperLogFile>
              <platforms>
                <platform>jsw</platform>
              </platforms>
            </daemon>
          </daemons>
        </configuration>
        ..
        </plugin>
    </plugins>
  </build>
</project>

The configuration for the daemon call can be found in the conf/wrapper.conf file which contains the entries which will be supplied as the the command line arguments (excerpt).

# Application parameters.  Add parameters as needed starting from 1
wrapper.app.parameter.1=org.codehaus.mojo.appassembler.example.helloworld.HelloWorld
wrapper.app.parameter.2=argument_one
wrapper.app.parameter.3=argument_two

Unfortunately the logs folder is needed anyway, cause the PID files will be stored their which is currently not changeable (If you have such a requirement just file in a issue).