final String accesslogger = getInitParameter("servlet-logger");
final Priority logPriority = Priority.getPriorityForName(logLevel.trim());
final ServletOutputLogTarget servTarget = new ServletOutputLogTarget(this.servletContext);
final CocoonLogFormatter formatter = new CocoonLogFormatter();
formatter.setFormat( "%7.7{priority} %{time} [%8.8{category}] " +
"(%{uri}) %{thread}/%{class:short}: %{message}\\n%{throwable}" );
servTarget.setFormatter(formatter);
Hierarchy.getDefaultHierarchy().setDefaultLogTarget(servTarget);
Hierarchy.getDefaultHierarchy().setDefaultPriority(logPriority);
final Logger logger = Hierarchy.getDefaultHierarchy().getLoggerFor("");
final DefaultLogKitManager logKitManager = new DefaultLogKitManager(Hierarchy.getDefaultHierarchy());
logKitManager.setLogger(logger);