Mickaël Guessant
2017-03-03 00:42:52 UTC
Hi all,
I recently added a new logging category in DavMail code to help users
track DavMail usage and maybe also ban IPs after too many failures.
In order to enable this new feature, please checkout latest version and
add the following lines to log4j.properties:
log4j.logger.davmail.connection=DEBUG, ConnectionAppender
log4j.appender.ConnectionAppender=org.apache.log4j.FileAppender
log4j.appender.ConnectionAppender.file=davmailconnection.log
log4j.appender.ConnectionAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.ConnectionAppender.layout.ConversionPattern=%d{ISO8601}
%-5p [%t] %c %x - %m%n
=> you will get a new log file davmailconnection.log with
event (LOGON, FAILED, CONNECT, DISCONNECT)
source IP and port
username for logon events
I would be very interested to get feedback on this before the upcoming
release.
Thanks !
I recently added a new logging category in DavMail code to help users
track DavMail usage and maybe also ban IPs after too many failures.
In order to enable this new feature, please checkout latest version and
add the following lines to log4j.properties:
log4j.logger.davmail.connection=DEBUG, ConnectionAppender
log4j.appender.ConnectionAppender=org.apache.log4j.FileAppender
log4j.appender.ConnectionAppender.file=davmailconnection.log
log4j.appender.ConnectionAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.ConnectionAppender.layout.ConversionPattern=%d{ISO8601}
%-5p [%t] %c %x - %m%n
=> you will get a new log file davmailconnection.log with
event (LOGON, FAILED, CONNECT, DISCONNECT)
source IP and port
username for logon events
I would be very interested to get feedback on this before the upcoming
release.
Thanks !
--
Mickael Guessant
mailto:***@free.fr
Mickael Guessant
mailto:***@free.fr