for reduce log level of yang parser.
As a result we reduce 1G output to
only 12M
- set debug loglevel for test
Change-Id: I5ed2c81e006b3d78193383ad78e5e01f9cbdccb2
Signed-off-by: Claudio D. Gasparini <claudio.gasparini@pantheon.tech>
~ terms of the Eclipse Public License v1.0 which accompanies this distribution,
~ and is available at http://www.eclipse.org/legal/epl-v10.html
-->
-<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
-<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
-
- <appender name="console" class="org.apache.log4j.ConsoleAppender">
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%-6p %d{HH:mm:ss.SSS} [%10.10t] %30.30c %x - %m%n"/>
- </layout>
+<configuration scan="true">
+ <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder>
+ <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
+ </encoder>
</appender>
- <logger name="org.opendaylight.yangtools.yang.parser" additivity="false">
- <level value="INFO"/>
- <appender-ref ref="console"/>
+ <logger name="org.opendaylight.protocol" additivity="false">
+ <level value="DEBUG"/>
+ <appender-ref ref="STDOUT"/>
+ </logger>
+ <logger name="org.opendaylight.bgpcep" additivity="false">
+ <level value="DEBUG"/>
+ <appender-ref ref="STDOUT"/>
</logger>
- <root>
- <priority value="DEBUG"/>
- <appender-ref ref="console"/>
+ <root level="info">
+ <appender-ref ref="STDOUT"/>
</root>
-</log4j:configuration>
\ No newline at end of file
+</configuration>
\ No newline at end of file
~ terms of the Eclipse Public License v1.0 which accompanies this distribution,
~ and is available at http://www.eclipse.org/legal/epl-v10.html
-->
-<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
-<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
-
- <appender name="console" class="org.apache.log4j.ConsoleAppender">
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%-6p %d{HH:mm:ss.SSS} [%10.10t] %30.30c %x - %m%n"/>
- </layout>
+<configuration scan="true">
+ <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder>
+ <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
+ </encoder>
</appender>
- <logger name="org.opendaylight.yangtools.yang.parser" additivity="false">
- <level value="INFO"/>
- <appender-ref ref="console"/>
+ <logger name="org.opendaylight.protocol" additivity="false">
+ <level value="DEBUG"/>
+ <appender-ref ref="STDOUT"/>
+ </logger>
+ <logger name="org.opendaylight.bgpcep" additivity="false">
+ <level value="DEBUG"/>
+ <appender-ref ref="STDOUT"/>
</logger>
- <root>
- <priority value="DEBUG"/>
- <appender-ref ref="console"/>
+ <root level="info">
+ <appender-ref ref="STDOUT"/>
</root>
-</log4j:configuration>
\ No newline at end of file
+</configuration>
\ No newline at end of file
~ terms of the Eclipse Public License v1.0 which accompanies this distribution,
~ and is available at http://www.eclipse.org/legal/epl-v10.html
-->
-<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
-<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
-
- <appender name="console" class="org.apache.log4j.ConsoleAppender">
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%-6p %d{HH:mm:ss.SSS} [%10.10t] %30.30c %x - %m%n"/>
- </layout>
+<configuration scan="true">
+ <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder>
+ <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
+ </encoder>
</appender>
- <logger name="org.opendaylight.yangtools.yang.parser" additivity="false">
- <level value="INFO"/>
- <appender-ref ref="console"/>
+ <logger name="org.opendaylight.protocol" additivity="false">
+ <level value="DEBUG"/>
+ <appender-ref ref="STDOUT"/>
+ </logger>
+ <logger name="org.opendaylight.bgpcep" additivity="false">
+ <level value="DEBUG"/>
+ <appender-ref ref="STDOUT"/>
</logger>
- <root>
- <priority value="DEBUG"/>
- <appender-ref ref="console"/>
+ <root level="info">
+ <appender-ref ref="STDOUT"/>
</root>
-</log4j:configuration>
\ No newline at end of file
+</configuration>
\ No newline at end of file
*/
package org.opendaylight.bgpcep.bgp.topology.provider;
+import static java.util.Objects.requireNonNull;
+
import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Preconditions;
-import com.google.common.util.concurrent.CheckedFuture;
import com.google.common.util.concurrent.FutureCallback;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.MoreExecutors;
import java.util.Collection;
import java.util.Collections;
import java.util.concurrent.atomic.AtomicBoolean;
final Class<? extends SubsequentAddressFamily> safi, final long listenerResetLimitInMillsec,
final int listenerResetEnforceCounter) {
this.dataProvider = dataProvider;
- this.locRibReference = Preconditions.checkNotNull(locRibReference);
- this.topologyKey = new TopologyKey(Preconditions.checkNotNull(topologyId));
+ this.locRibReference = requireNonNull(locRibReference);
+ this.topologyKey = new TopologyKey(requireNonNull(topologyId));
this.topologyTypes = types;
this.afi = afi;
this.safi = safi;
// we do nothing but print out the log. Transaction chain restart will be done in #onTransactionChainFailed()
LOG.error("Failed to propagate change (transaction {}) by listener {}", trans.getIdentifier(), AbstractTopologyBuilder.this, t);
}
- });
+ }, MoreExecutors.directExecutor());
}
@VisibleForTesting
}
private synchronized void initOperationalTopology() {
- Preconditions.checkNotNull(this.chain, "A valid transaction chain must be provided.");
+ requireNonNull(this.chain, "A valid transaction chain must be provided.");
final WriteTransaction trans = this.chain.newWriteOnlyTransaction();
trans.put(LogicalDatastoreType.OPERATIONAL, this.topology,
new TopologyBuilder().setKey(this.topologyKey).setServerProvided(Boolean.TRUE).setTopologyTypes(this.topologyTypes)
LOG.error("Failed to initialize topology {} (transaction {}) by listener {}", AbstractTopologyBuilder.this.topology,
trans.getIdentifier(), AbstractTopologyBuilder.this, t);
}
- });
+ }, MoreExecutors.directExecutor());
}
/**
* @throws TransactionCommitFailedException
*/
private synchronized ListenableFuture<Void> destroyOperationalTopology() {
- Preconditions.checkNotNull(this.chain, "A valid transaction chain must be provided.");
+ requireNonNull(this.chain, "A valid transaction chain must be provided.");
final WriteTransaction trans = this.chain.newWriteOnlyTransaction();
trans.delete(LogicalDatastoreType.OPERATIONAL, getInstanceIdentifier());
- final CheckedFuture<Void, TransactionCommitFailedException> future = trans.submit();
+ final ListenableFuture<Void> future = trans.submit();
Futures.addCallback(future, new FutureCallback<Void>() {
@Override
public void onSuccess(final Void result) {
LOG.error("Unable to reset operational topology {} (transaction {})",
AbstractTopologyBuilder.this.topology, trans.getIdentifier(), t);
}
- });
+ }, MoreExecutors.directExecutor());
clearTopology();
return future;
}
*/
@VisibleForTesting
protected synchronized void resetListener() {
- Preconditions.checkNotNull(this.listenerRegistration, "Listener on topology %s hasn't been initialized.", this);
+ requireNonNull(this.listenerRegistration, "Listener on topology " + this + " hasn't been initialized.");
LOG.debug("Resetting data change listener for topology builder {}", getInstanceIdentifier());
// unregister current listener to prevent incoming data tree change first
unregisterDataChangeListener();
this.listenerScheduledRestartEnforceCounter = 0;
resetListener();
return true;
- } else {
- resetTransactionChain();
}
+
+ resetTransactionChain();
}
return false;
}
*/
package org.opendaylight.bgpcep.bgp.topology.provider;
+import static java.util.Objects.requireNonNull;
+
import com.google.common.base.Preconditions;
import com.google.common.collect.Collections2;
import com.google.common.collect.Lists;
private final TerminationPoint tp;
private TpHolder(final TerminationPoint tp) {
- this.tp = Preconditions.checkNotNull(tp);
+ this.tp = requireNonNull(tp);
}
private synchronized void addLink(final LinkId id, final boolean isRemote) {
if (!this.advertized) {
if (this.tps.isEmpty() && this.prefixes.isEmpty()) {
- LOG.debug("Removing unadvertized unused node {}", this.nb.getNodeId());
+ LOG.trace("Removing unadvertized unused node {}", this.nb.getNodeId());
return true;
}
- LOG.debug("Node {} is still implied by {} TPs and {} prefixes", this.nb.getNodeId(), this.tps.size(), this.prefixes.size());
+ LOG.trace("Node {} is still implied by {} TPs and {} prefixes", this.nb.getNodeId(), this.tps.size(), this.prefixes.size());
}
// Re-generate termination points
// Write the node out
final Node n = this.nb.addAugmentation(Node1.class, new Node1Builder().setIgpNodeAttributes(this.inab.build()).build()).build();
trans.put(LogicalDatastoreType.OPERATIONAL, nid, n);
- LOG.debug("Created node {} at {}", n, nid);
+ LOG.trace("Created node {} at {}", n, nid);
return false;
}
if (!this.advertized) {
if (this.tps.isEmpty() && this.prefixes.isEmpty()) {
trans.delete(LogicalDatastoreType.OPERATIONAL, nid);
- LOG.debug("Removing unadvertized unused node {}", this.nb.getNodeId());
+ LOG.trace("Removing unadvertized unused node {}", this.nb.getNodeId());
return true;
}
- LOG.debug("Node {} is still implied by {} TPs and {} prefixes", this.nb.getNodeId(), this.tps.size(), this.prefixes.size());
+ LOG.trace("Node {} is still implied by {} TPs and {} prefixes", this.nb.getNodeId(), this.tps.size(), this.prefixes.size());
}
return false;
}
if (h != null) {
if (h.removeLink(link, isRemote)) {
this.tps.remove(tp);
- LOG.debug("Removed TP {}", tp);
+ LOG.trace("Removed TP {}", tp);
}
} else {
LOG.warn("Removed non-present TP {} by link {}", tp, link);
}
private void advertized(final NodeBuilder nb, final IgpNodeAttributesBuilder inab) {
- this.nb = Preconditions.checkNotNull(nb);
- this.inab = Preconditions.checkNotNull(inab);
+ this.nb = requireNonNull(nb);
+ this.inab = requireNonNull(inab);
this.advertized = true;
LOG.debug("Node {} is advertized", nb.getNodeId());
}
lb.addAugmentation(Link1.class, new Link1Builder().setIgpLinkAttributes(ilab.build()).build());
final NodeId srcNode = buildNodeId(base, l.getLocalNodeDescriptors());
- LOG.debug("Link {} implies source node {}", l, srcNode);
+ LOG.trace("Link {} implies source node {}", l, srcNode);
final NodeId dstNode = buildNodeId(base, l.getRemoteNodeDescriptors());
- LOG.debug("Link {} implies destination node {}", l, dstNode);
+ LOG.trace("Link {} implies destination node {}", l, dstNode);
final TerminationPoint srcTp = buildLocalTp(base, l.getLinkDescriptors());
- LOG.debug("Link {} implies source TP {}", l, srcTp);
+ LOG.trace("Link {} implies source TP {}", l, srcTp);
final TerminationPoint dstTp = buildRemoteTp(base, l.getLinkDescriptors());
- LOG.debug("Link {} implies destination TP {}", l, dstTp);
+ LOG.trace("Link {} implies destination TP {}", l, dstTp);
lb.setSource(new SourceBuilder().setSourceNode(srcNode).setSourceTp(srcTp.getTpId()).build());
lb.setDestination(new DestinationBuilder().setDestNode(dstNode).setDestTp(dstTp.getTpId()).build());
- LOG.debug("Created TP {} as link source", srcTp);
+ LOG.trace("Created TP {} as link source", srcTp);
NodeHolder snh = this.nodes.get(srcNode);
if (snh == null) {
snh = getNode(srcNode);
putNode(trans, snh);
} else {
snh.addTp(srcTp, lb.getLinkId(), false);
- final InstanceIdentifier<Node> nid = getNodeInstanceIdentifier(new NodeKey((NodeId) snh.getNodeId()));
+ final InstanceIdentifier<Node> nid = getNodeInstanceIdentifier(new NodeKey(snh.getNodeId()));
trans.put(LogicalDatastoreType.OPERATIONAL, nid.child(TerminationPoint.class, srcTp.getKey()), srcTp);
}
dnh.addTp(dstTp, lb.getLinkId(), true);
final InstanceIdentifier<Node> nid = getInstanceIdentifier().child(
org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node.class,
- new NodeKey((NodeId) dnh.getNodeId()));
+ new NodeKey(dnh.getNodeId()));
trans.put(LogicalDatastoreType.OPERATIONAL, nid.child(TerminationPoint.class, dstTp.getKey()), dstTp);
}
final LinkId link, final boolean isRemote) {
final NodeHolder nh = this.nodes.get(node);
if (nh != null) {
- final InstanceIdentifier<Node> nid = getNodeInstanceIdentifier(new NodeKey((NodeId) nh.getNodeId()));
+ final InstanceIdentifier<Node> nid = getNodeInstanceIdentifier(new NodeKey(nh.getNodeId()));
trans.delete(LogicalDatastoreType.OPERATIONAL, nid.child(TerminationPoint.class, new TerminationPointKey(tp)));
nh.removeTp(tp, link, isRemote);
checkNodeForRemoval(trans, nh);
putNode(trans, nh);
} else {
nh.addPrefix(pfx);
- final InstanceIdentifier<Node> nid = getNodeInstanceIdentifier(new NodeKey((NodeId) nh.getNodeId()));
+ final InstanceIdentifier<Node> nid = getNodeInstanceIdentifier(new NodeKey(nh.getNodeId()));
final InstanceIdentifier<IgpNodeAttributes> inaId = nid.builder().augmentation(Node1.class).child(IgpNodeAttributes.class).build();
trans.put(LogicalDatastoreType.OPERATIONAL, inaId.child(Prefix.class, pk), pfx);
}
final NodeHolder nh = this.nodes.get(node);
if (nh != null) {
LOG.debug("Removed prefix {}", p);
- final InstanceIdentifier<Node> nid = getNodeInstanceIdentifier(new NodeKey((NodeId) nh.getNodeId()));
+ final InstanceIdentifier<Node> nid = getNodeInstanceIdentifier(new NodeKey(nh.getNodeId()));
final InstanceIdentifier<IgpNodeAttributes> inaId = nid.builder().augmentation(Node1.class).child(IgpNodeAttributes.class).build();
final IpPrefix ippfx = p.getPrefixDescriptors().getIpReachabilityInformation();
if (ippfx == null) {
~ terms of the Eclipse Public License v1.0 which accompanies this distribution,
~ and is available at http://www.eclipse.org/legal/epl-v10.html
-->
-<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
-<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
-
- <appender name="console" class="org.apache.log4j.ConsoleAppender">
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%-6p %d{HH:mm:ss.SSS} [%10.10t] %30.30c %x - %m%n"/>
- </layout>
+<configuration scan="true">
+ <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder>
+ <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
+ </encoder>
</appender>
- <logger name="org.opendaylight.yangtools.yang.parser" additivity="false">
- <level value="INFO"/>
- <appender-ref ref="console"/>
+ <logger name="org.opendaylight.protocol" additivity="false">
+ <level value="DEBUG"/>
+ <appender-ref ref="STDOUT"/>
+ </logger>
+ <logger name="org.opendaylight.bgpcep" additivity="false">
+ <level value="DEBUG"/>
+ <appender-ref ref="STDOUT"/>
</logger>
- <root>
- <priority value="DEBUG"/>
- <appender-ref ref="console"/>
+ <root level="info">
+ <appender-ref ref="STDOUT"/>
</root>
-</log4j:configuration>
\ No newline at end of file
+</configuration>
\ No newline at end of file
~ terms of the Eclipse Public License v1.0 which accompanies this distribution,
~ and is available at http://www.eclipse.org/legal/epl-v10.html
-->
-<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
-<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
-
- <appender name="console" class="org.apache.log4j.ConsoleAppender">
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%-6p %d{HH:mm:ss.SSS} [%10.10t] %30.30c %x - %m%n"/>
- </layout>
+<configuration scan="true">
+ <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder>
+ <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
+ </encoder>
</appender>
- <logger name="org.opendaylight.yangtools.yang.parser" additivity="false">
- <level value="INFO"/>
- <appender-ref ref="console"/>
+ <logger name="org.opendaylight.protocol" additivity="false">
+ <level value="DEBUG"/>
+ <appender-ref ref="STDOUT"/>
+ </logger>
+ <logger name="org.opendaylight.bgpcep" additivity="false">
+ <level value="DEBUG"/>
+ <appender-ref ref="STDOUT"/>
</logger>
- <root>
- <priority value="DEBUG"/>
- <appender-ref ref="console"/>
+ <root level="info">
+ <appender-ref ref="STDOUT"/>
</root>
-</log4j:configuration>
\ No newline at end of file
+</configuration>
\ No newline at end of file
~ terms of the Eclipse Public License v1.0 which accompanies this distribution,
~ and is available at http://www.eclipse.org/legal/epl-v10.html
-->
-<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
-<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
-
- <appender name="console" class="org.apache.log4j.ConsoleAppender">
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%-6p %d{HH:mm:ss.SSS} [%10.10t] %30.30c %x - %m%n"/>
- </layout>
+<configuration scan="true">
+ <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder>
+ <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
+ </encoder>
</appender>
- <logger name="org.opendaylight.yangtools.yang.parser" additivity="false">
- <level value="INFO"/>
- <appender-ref ref="console"/>
+ <logger name="org.opendaylight.protocol" additivity="false">
+ <level value="DEBUG"/>
+ <appender-ref ref="STDOUT"/>
+ </logger>
+ <logger name="org.opendaylight.bgpcep" additivity="false">
+ <level value="DEBUG"/>
+ <appender-ref ref="STDOUT"/>
</logger>
- <root>
- <priority value="DEBUG"/>
- <appender-ref ref="console"/>
+ <root level="info">
+ <appender-ref ref="STDOUT"/>
</root>
-</log4j:configuration>
\ No newline at end of file
+</configuration>
\ No newline at end of file
~ terms of the Eclipse Public License v1.0 which accompanies this distribution,
~ and is available at http://www.eclipse.org/legal/epl-v10.html
-->
-<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
-<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
-
- <appender name="console" class="org.apache.log4j.ConsoleAppender">
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%-6p %d{HH:mm:ss.SSS} [%10.10t] %30.30c %x - %m%n"/>
- </layout>
+<configuration scan="true">
+ <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder>
+ <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
+ </encoder>
</appender>
- <logger name="org.opendaylight.yangtools.yang.parser" additivity="false">
- <level value="INFO"/>
- <appender-ref ref="console"/>
+ <logger name="org.opendaylight.protocol" additivity="false">
+ <level value="DEBUG"/>
+ <appender-ref ref="STDOUT"/>
+ </logger>
+ <logger name="org.opendaylight.bgpcep" additivity="false">
+ <level value="DEBUG"/>
+ <appender-ref ref="STDOUT"/>
</logger>
- <root>
- <priority value="DEBUG"/>
- <appender-ref ref="console"/>
+ <root level="info">
+ <appender-ref ref="STDOUT"/>
</root>
-</log4j:configuration>
\ No newline at end of file
+</configuration>
\ No newline at end of file
~ terms of the Eclipse Public License v1.0 which accompanies this distribution,
~ and is available at http://www.eclipse.org/legal/epl-v10.html
-->
-<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
-<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
-
- <appender name="console" class="org.apache.log4j.ConsoleAppender">
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%-6p %d{HH:mm:ss.SSS} [%10.10t] %30.30c %x - %m%n"/>
- </layout>
+<configuration scan="true">
+ <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder>
+ <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
+ </encoder>
</appender>
- <logger name="org.opendaylight.yangtools.yang.parser" additivity="false">
- <level value="INFO"/>
- <appender-ref ref="console"/>
+ <logger name="org.opendaylight.protocol" additivity="false">
+ <level value="DEBUG"/>
+ <appender-ref ref="STDOUT"/>
+ </logger>
+ <logger name="org.opendaylight.bgpcep" additivity="false">
+ <level value="DEBUG"/>
+ <appender-ref ref="STDOUT"/>
</logger>
- <root>
- <priority value="DEBUG"/>
- <appender-ref ref="console"/>
+ <root level="info">
+ <appender-ref ref="STDOUT"/>
</root>
-</log4j:configuration>
\ No newline at end of file
+</configuration>
\ No newline at end of file
~ terms of the Eclipse Public License v1.0 which accompanies this distribution,
~ and is available at http://www.eclipse.org/legal/epl-v10.html
-->
-<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
-<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
-
- <appender name="console" class="org.apache.log4j.ConsoleAppender">
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%-6p %d{HH:mm:ss.SSS} [%10.10t] %30.30c %x - %m%n"/>
- </layout>
+<configuration scan="true">
+ <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder>
+ <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
+ </encoder>
</appender>
- <logger name="org.opendaylight.yangtools.yang.parser" additivity="false">
- <level value="INFO"/>
- <appender-ref ref="console"/>
+ <logger name="org.opendaylight.protocol" additivity="false">
+ <level value="DEBUG"/>
+ <appender-ref ref="STDOUT"/>
+ </logger>
+ <logger name="org.opendaylight.bgpcep" additivity="false">
+ <level value="DEBUG"/>
+ <appender-ref ref="STDOUT"/>
</logger>
- <root>
- <priority value="DEBUG"/>
- <appender-ref ref="console"/>
+ <root level="info">
+ <appender-ref ref="STDOUT"/>
</root>
-</log4j:configuration>
\ No newline at end of file
+</configuration>
\ No newline at end of file
~ terms of the Eclipse Public License v1.0 which accompanies this distribution,
~ and is available at http://www.eclipse.org/legal/epl-v10.html
-->
-<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
-<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
-
- <appender name="console" class="org.apache.log4j.ConsoleAppender">
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%-6p %d{HH:mm:ss.SSS} [%10.10t] %30.30c %x - %m%n"/>
- </layout>
+<configuration scan="true">
+ <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder>
+ <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
+ </encoder>
</appender>
- <logger name="org.opendaylight.yangtools.yang.parser" additivity="false">
- <level value="INFO"/>
- <appender-ref ref="console"/>
+ <logger name="org.opendaylight.protocol" additivity="false">
+ <level value="DEBUG"/>
+ <appender-ref ref="STDOUT"/>
+ </logger>
+ <logger name="org.opendaylight.bgpcep" additivity="false">
+ <level value="DEBUG"/>
+ <appender-ref ref="STDOUT"/>
</logger>
- <root>
- <priority value="DEBUG"/>
- <appender-ref ref="console"/>
+ <root level="info">
+ <appender-ref ref="STDOUT"/>
</root>
-</log4j:configuration>
\ No newline at end of file
+</configuration>
\ No newline at end of file