You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by ad...@apache.org on 2019/11/12 14:06:53 UTC
svn commit: r1869699 -
/jackrabbit/oak/trunk/oak-doc/src/site/markdown/nodestore/segment/overview.md
Author: adulceanu
Date: Tue Nov 12 14:06:52 2019
New Revision: 1869699
URL: http://svn.apache.org/viewvc?rev=1869699&view=rev
Log:
OAK-8756 - Oak-run segment-copy command logging documentation
Modified:
jackrabbit/oak/trunk/oak-doc/src/site/markdown/nodestore/segment/overview.md
Modified: jackrabbit/oak/trunk/oak-doc/src/site/markdown/nodestore/segment/overview.md
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-doc/src/site/markdown/nodestore/segment/overview.md?rev=1869699&r1=1869698&r2=1869699&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-doc/src/site/markdown/nodestore/segment/overview.md (original)
+++ jackrabbit/oak/trunk/oak-doc/src/site/markdown/nodestore/segment/overview.md Tue Nov 12 14:06:52 2019
@@ -687,6 +687,37 @@ Unlike a sidegrade peformed with `oak-up
Both are specified as `PATH | cloud-prefix:URI`.
Please refer to the [Remote Segment Stores](#remote-segment-stores) section for details on how to correctly specify connection URIs.
+To enable logging during segment copy a Logback configuration file has to be injected via the `logback.configurationFile` property.
+
+##### Example
+
+The following command uses `logback-segment-copy.xml` to configure Logback logging for segment-copy to the console.
+
+```
+java -Dlogback.configurationFile=logback-segment-copy.xml -jar oak-run.jar segment-copy cloud-prefix:URI some/local/path
+```
+
+logback-compaction.xml:
+
+```
+<?xml version="1.0" encoding="UTF-8"?>
+<configuration scan="true">
+
+ <appender name="console" 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.apache.jackrabbit.oak.segment.azure.tool.SegmentStoreMigrator" level="INFO"/>
+
+ <root level="warn">
+ <appender-ref ref="console"/>
+ </root>
+</configuration>
+```
+
+
### <a name="backup"/> Backup
```