Logging - neowit/backup-force.com GitHub Wiki

Out of the box backup-force.com will dump all messages into console/stdout. If your requirements are more sophisticated then starting version 0.3.7 you can leverage Logback for finer control of what goes where.

For example - to use custom Logback config and generate separate log file for each named extract/backup process we could use something like this:

	<appender name="FILE" class="ch.qos.logback.core.FileAppender">
		<file>/path/to/folder/${process_name}.log</file>
		<encoder>
			<pattern>%d{HH:mm:ss.SSS} - %msg%n</pattern>
		</encoder>
	</appender>
	<root level="debug">
		<appender-ref ref="FILE" />
	</root>

Then to run the application and dump log results into file myextract.log following command line may be used:
java -Dprocess_name="myextract" -Dlogback.configurationFile=./logback.xml -jar backup-force.com-0.3.7.jar --config c:/myextract.properties

⚠️ **GitHub.com Fallback** ⚠️