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

gbellato
11.14.2007 b80ead961b3e5e12f9f2e9e001a247c17041beb0
refs
author gbellato <gbellato@localhost>
Wednesday, July 11, 2007 10:14 +0200
committer gbellato <gbellato@localhost>
Wednesday, July 11, 2007 10:14 +0200
commitb80ead961b3e5e12f9f2e9e001a247c17041beb0
tree ab627a91af7dcca025957c1a9b9eae9d67b62263 tree | zip | gz
parent 3df898a979356dd70996274d808543c49fc59c67 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
opendj-sdk/opends/resource/config/config.ldif 2 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/resource/schema/02-config.ldif 7 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/admin/defn/org/opends/server/admin/std/AccessLogPublisherConfiguration.xml 23 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/api/AccessLogPublisher.java 6 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/loggers/TextAccessLogPublisher.java 376 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/loggers/TextAuditLogPublisher.java 78 ●●●● diff | view | raw | blame | history