[
https://issues.apache.org/jira/browse/SYNCOPE-1144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16083870#comment-16083870
]
ASF GitHub Bot commented on SYNCOPE-1144:
-----------------------------------------
Github user ilgrosso commented on a diff in the pull request:
https://github.com/apache/syncope/pull/52#discussion_r126933973
--- Diff:
core/logic/src/main/java/org/apache/syncope/core/logic/AuditAppender.java ---
@@ -0,0 +1,46 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.syncope.core.logic;
+
+import java.util.Set;
+import org.apache.logging.log4j.core.Appender;
+import org.apache.logging.log4j.core.appender.rewrite.RewriteAppender;
+import org.apache.logging.log4j.core.appender.rewrite.RewritePolicy;
+import org.apache.syncope.common.lib.types.AuditLoggerName;
+
+public interface AuditAppender {
--- End diff --
Some Javadoc here won't hurt..
> Customizable Audit appender
> ---------------------------
>
> Key: SYNCOPE-1144
> URL: https://issues.apache.org/jira/browse/SYNCOPE-1144
> Project: Syncope
> Issue Type: New Feature
> Components: common, console, core
> Reporter: Francesco Chicchiriccò
> Assignee: Andrea Patricelli
> Fix For: 2.0.5, 2.1.0
>
>
> The Audit mechanism is based on LOG4J, configured to use the {{JDBCAppender}}
> to store the audit statements into the {{SyncopeAudit}} table in the internal
> storage.
> Besides this base mechanism, we can introduce the {{AuditAppender}}
> interface, whose instances can:
> # declare which event(s) they will be invoked with
> # declare another LOG4J appender to send the statements to (besides the
> {{JDBCAppender}} as above)
> # optionally offer the ability to transform the standard statement to a
> format more suitable to the target appender
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)