| | |
| | | } |
| | | |
| | | suppressInternalOperations = config.isSuppressInternalOperations(); |
| | | suppressSynchronizationOperations = |
| | | config.isSuppressSynchronizationOperations(); |
| | | |
| | | currentConfig = config; |
| | | |
| | |
| | | ArrayList<String> messages = new ArrayList<String>(); |
| | | |
| | | suppressInternalOperations = config.isSuppressInternalOperations(); |
| | | suppressSynchronizationOperations = |
| | | config.isSuppressSynchronizationOperations(); |
| | | |
| | | File logFile = getFileForPath(config.getLogFile()); |
| | | FileNamingPolicy fnPolicy = new TimeStampNaming(logFile); |
| | |
| | | |
| | | if(currentWriter instanceof MultifileTextWriter) |
| | | { |
| | | MultifileTextWriter mfWriter = (MultifileTextWriter)writer; |
| | | MultifileTextWriter mfWriter = (MultifileTextWriter)currentWriter; |
| | | |
| | | mfWriter.setNamingPolicy(fnPolicy); |
| | | mfWriter.setFilePermissions(perm); |
| | |
| | | public void logAddResponse(AddOperation addOperation) |
| | | { |
| | | long connectionID = addOperation.getConnectionID(); |
| | | if(connectionID < 0 && suppressInternalOperations) |
| | | if (connectionID < 0) |
| | | { |
| | | return; |
| | | // This is an internal operation. |
| | | if (addOperation.isSynchronizationOperation()) |
| | | { |
| | | if (suppressSynchronizationOperations) |
| | | { |
| | | return; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | if (suppressInternalOperations) |
| | | { |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | ResultCode code = addOperation.getResultCode(); |
| | | |
| | |
| | | public void logDeleteResponse(DeleteOperation deleteOperation) |
| | | { |
| | | long connectionID = deleteOperation.getConnectionID(); |
| | | if(connectionID < 0 && suppressInternalOperations) |
| | | if (connectionID < 0) |
| | | { |
| | | return; |
| | | // This is an internal operation. |
| | | if (deleteOperation.isSynchronizationOperation()) |
| | | { |
| | | if (suppressSynchronizationOperations) |
| | | { |
| | | return; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | if (suppressInternalOperations) |
| | | { |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | ResultCode code = deleteOperation.getResultCode(); |
| | | |
| | |
| | | public void logModifyResponse(ModifyOperation modifyOperation) |
| | | { |
| | | long connectionID = modifyOperation.getConnectionID(); |
| | | if(connectionID < 0 && suppressInternalOperations) |
| | | if (connectionID < 0) |
| | | { |
| | | return; |
| | | // This is an internal operation. |
| | | if (modifyOperation.isSynchronizationOperation()) |
| | | { |
| | | if (suppressSynchronizationOperations) |
| | | { |
| | | return; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | if (suppressInternalOperations) |
| | | { |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | ResultCode code = modifyOperation.getResultCode(); |
| | | |
| | |
| | | public void logModifyDNResponse(ModifyDNOperation modifyDNOperation) |
| | | { |
| | | long connectionID = modifyDNOperation.getConnectionID(); |
| | | if(connectionID < 0 && suppressInternalOperations) |
| | | if (connectionID < 0) |
| | | { |
| | | return; |
| | | // This is an internal operation. |
| | | if (modifyDNOperation.isSynchronizationOperation()) |
| | | { |
| | | if (suppressSynchronizationOperations) |
| | | { |
| | | return; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | if (suppressInternalOperations) |
| | | { |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | ResultCode code = modifyDNOperation.getResultCode(); |
| | | |