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

Jean-Noel Rouvignac
25.00.2013 b54d8bdf7b583b5d57b7deae2431c32fcd644a1a
refs
author Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Thursday, April 25, 2013 11:00 +0200
committer Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Thursday, April 25, 2013 11:00 +0200
commitb54d8bdf7b583b5d57b7deae2431c32fcd644a1a
tree f216fec332bc405dab96aab5458e1af9f436a1a8 tree | zip | gz
parent bf0741dfe9f9fa72542d1aacac4c80953ddc4692 view | diff
OPENDJ-879 (CR-1603) Add HTTP access log


Consolidated common code for the *Logger classes prior to implementing the HTTP access log.


AbstractLogger.java: ADDED
Pulled up from the *Logger classes.

AccessLogger.java, ErrorLogger.java, DebugLogger.java:
Now inherit from AbstractLogger.
Removed code pulled up into AbstractLogger: initializeErrorLogger(), isConfigurationAddAcceptable(), applyConfigurationAdd(), applyConfigurationChange(), isConfigurationDeleteAcceptable(), applyConfigurationDelete(), isJavaClassAcceptable(), getErrorPublisher().
Added the loggerStorage static variable.
Added a ctor + implemented getJavaClassPropertyDefinition() and getStorage().

LoggerConfigManager.java:
Replaced the calls to the various initialize*Logger() methods with calling initializeLogger().
Extracted method getLoggerInstance() and used it in all the other methods.


LogPublisherConfiguration.xml:
Pulled up the declaration of "java-class" property here from sub configurations.

AccessLogPublisherConfiguration.xml, DebugLogPublisherConfiguration.xml, ErrorLogPublisherConfiguration.xml, LogPublisherConfiguration.xml:
Replaced the declaration of "java-class" property by a property-override.

StaticUtils.java:
Added close(Collection<Closeable>)
10 files modified
1 files added
1764 ■■■■■ changed files
opends/src/admin/defn/org/opends/server/admin/std/AccessLogPublisherConfiguration.xml 28 ●●●● diff | view | raw | blame | history
opends/src/admin/defn/org/opends/server/admin/std/DebugLogPublisherConfiguration.xml 27 ●●●● diff | view | raw | blame | history
opends/src/admin/defn/org/opends/server/admin/std/ErrorLogPublisherConfiguration.xml 27 ●●●● diff | view | raw | blame | history
opends/src/admin/defn/org/opends/server/admin/std/LogPublisherConfiguration.xml 20 ●●●●● diff | view | raw | blame | history
opends/src/admin/messages/LogPublisherCfgDefn.properties 1 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/core/LoggerConfigManager.java 163 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/loggers/AbstractLogger.java 409 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/loggers/AccessLogger.java 381 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/loggers/ErrorLogger.java 339 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/loggers/debug/DebugLogger.java 349 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/util/StaticUtils.java 20 ●●●●● diff | view | raw | blame | history