mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

gbellato
11.14.2007 a27123e14342027e3bd56279613a0d1b030e0bf0
refs
author gbellato <gbellato@localhost>
Wednesday, July 11, 2007 10:14 +0200
committer gbellato <gbellato@localhost>
Wednesday, July 11, 2007 10:14 +0200
commita27123e14342027e3bd56279613a0d1b030e0bf0
tree 1abf5e69dbfb5f1ac7ba1fb3c331fe0b295f962c tree | zip | gz
parent 050b11ec1491506e20f16152ba26466be841daa8 view | diff
Fix for issue 1321 : Synchronization changes aren't logged by default

This adds a new configuration property for the accessLogPublishers : ds-cfg-suppress-synchronization-operations.
It can be used to configure the behaviour of some log publisher with regards to the synchronization operations.

When set to false (which is the default value) the access log publisher will log the synchronization operation.
When set to true, the access log publisher will not log the synchronization operation.
The property ds-cfg-suppress-internal-operations that control the logging of the internal operations
now does not have any effect on the synchronization operation (so that one can configure the
server to log all internal operations except the synchronization ones)

Both the access log and the audit log implement this property.

I've also added the string : "type=synchronization" at the end of the line corresponding
to the operation request in the access log so that it is possible to
differentiate the synchronzation operations from the other operations.

example :
[10/Jul/2007:15:29:34 +0200] ADD conn=-1 op=1314 msgID=1315 dn="cn=Natascha Pfifferling463, ou=Human Resources, dc=example,dc=com" type=synchronization
[10/Jul/2007:15:29:34 +0200] ADD conn=-1 op=1314 msgID=1315 result="Success" etime=98

I could not find any unit test for the access and audit log and decided it was too
complex to create new ones compared to the simplicity of this change...
6 files modified
492 ■■■■■ changed files
opends/resource/config/config.ldif 2 ●●●●● diff | view | raw | blame | history
opends/resource/schema/02-config.ldif 7 ●●●● diff | view | raw | blame | history
opends/src/admin/defn/org/opends/server/admin/std/AccessLogPublisherConfiguration.xml 23 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/api/AccessLogPublisher.java 6 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/loggers/TextAccessLogPublisher.java 376 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/loggers/TextAuditLogPublisher.java 78 ●●●● diff | view | raw | blame | history