MARMOTTA-440 LdpLoggingModule
Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/1d9a5f65 Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/1d9a5f65 Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/1d9a5f65 Branch: refs/heads/ldp Commit: 1d9a5f653798f51363cbaf72a520ba60c7f793b2 Parents: 89e13f1 Author: Jakob Frank <[email protected]> Authored: Wed Feb 19 12:10:54 2014 +0100 Committer: Jakob Frank <[email protected]> Committed: Wed Feb 19 12:10:54 2014 +0100 ---------------------------------------------------------------------- .../platform/ldp/logging/LdpLoggingModule.java | 52 ++++++++++++++++++++ 1 file changed, 52 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/marmotta/blob/1d9a5f65/platform/marmotta-ldp/src/main/java/org/apache/marmotta/platform/ldp/logging/LdpLoggingModule.java ---------------------------------------------------------------------- diff --git a/platform/marmotta-ldp/src/main/java/org/apache/marmotta/platform/ldp/logging/LdpLoggingModule.java b/platform/marmotta-ldp/src/main/java/org/apache/marmotta/platform/ldp/logging/LdpLoggingModule.java new file mode 100644 index 0000000..33532cd --- /dev/null +++ b/platform/marmotta-ldp/src/main/java/org/apache/marmotta/platform/ldp/logging/LdpLoggingModule.java @@ -0,0 +1,52 @@ +/* + * 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.marmotta.platform.ldp.logging; + +import ch.qos.logback.classic.Level; +import org.apache.marmotta.platform.core.logging.BaseLoggingModule; + +import javax.enterprise.context.ApplicationScoped; +import java.util.Collection; +import java.util.Collections; + +/** + * Logging module for LDP + */ +@ApplicationScoped +public class LdpLoggingModule extends BaseLoggingModule { + + @Override + public String getId() { + return "ldp"; + } + + @Override + public String getName() { + return "LDP"; + } + + @Override + public Collection<String> getPackages() { + return Collections.singleton("org.apache.marmotta.platform.ldp"); + } + + @Override + public Level getDefaultLevel() { + return Level.WARN; + } +}
