Skip to content

Commit e7cf9e9

Browse files
author
eric feigner
committed
updating README with suggested edits regarding logging file appender
1 parent a14eb0d commit e7cf9e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ Or if you want to use the Log4J Java class, you can do that as well :-
4848

4949
You can also set the appender to one of the appenders provided by the logging package you are using. For example, if you're using the log4j backend you can do this.
5050

51+
(set-logger! :out (org.apache.log4j.FileAppender. (org.apache.log4j.SimpleLayout.) "path-to-your-logfile"))
52+
53+
Or, if you'd prefer to use a rolling log appender instead:
54+
5155
(set-logger! :out (org.apache.log4j.DailyRollingFileAppender.))
5256

5357
Or even provide your own appender function.

0 commit comments

Comments
 (0)