Skip to content

Commit b184016

Browse files
authored
QF210520-2x8 -- PORT-FORWARD -- Various QF fixes from 2.8 (#462)
QF210520-4-2x8 -- PORT FORWARD -- Fix Indents fix indentation and remove trailing spaces in Program.cs (#458) - replace tabs with spaces - remove trailing spaces QF210520-4 -- (cherry picked from commit 6ad4c29) -- (cherry picked from commit d3df74f) QF210520-3 -- bf3dd9d QF210520-2 -- e5bfa32 QF210520-1 ce1a808
1 parent 08ed19a commit b184016

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

modules/ROOT/pages/_partials/commons/common-logging.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ include::{snippet}[tag=set-custom-logging,indent=0]
195195
----
196196
197197
<.> Here we set the custom logger with a level of 'warning'.
198+
The custom logger is called with every log and may choose to filter it, using its configured level.
198199
199200
====
200201

modules/android/examples/snippets/app/src/main/java/com/couchbase/code_snippets/Examples.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,6 @@ public void testLogging() {
249249

250250
public void testEnableCustomLogging() {
251251
// tag::set-custom-logging[]
252-
// this custom logger will never be asked to log an event
253-
// with a log level < WARNING
254252
Database.log.setCustom(new LogTestLogger(LogLevel.WARNING)); // <.>
255253
// end::set-custom-logging[]
256254
}
@@ -1502,8 +1500,6 @@ class LogTestLogger implements Logger {
15021500

15031501
@Override
15041502
public void log(@NonNull LogLevel level, @NonNull LogDomain domain, @NonNull String message) {
1505-
// this method will never be called if param level < this.level
1506-
// handle the message, for example piping it to a third party framework
15071503
}
15081504
}
15091505
// end::custom-logging[]

modules/csharp/examples/code_snippets/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ private static void LoadPrebuilt()
434434
_Database = new Database("travel-sample");
435435
}
436436

437-
private static void QueryDeletedDocuments()
437+
private static void QueryDeletedDocuments()
438438
{
439439
// tag::query-deleted-documents[]
440440
// Query documents that have been deleted
@@ -518,7 +518,7 @@ private static void DatabaseChangeListener()
518518

519519
private static void DocumentExpiration()
520520
{
521-
var db = _Database;
521+
var db = _Database;
522522

523523
// tag::document-expiration[]
524524
// Purge the document one day from now

modules/java/examples/code_snippets/Examples.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -763,8 +763,6 @@ public void testLogging() {
763763

764764
public void testEnableCustomLogging() {
765765
// tag::set-custom-logging[]
766-
// this custom logger will never be asked to log an event
767-
// with a log level < WARNING
768766
Database.log.setCustom(new LogTestLogger(LogLevel.WARNING)); // <.>
769767
// end::set-custom-logging[]
770768
}
@@ -1983,8 +1981,7 @@ class LogTestLogger implements Logger {
19831981

19841982
@Override
19851983
public void log(@NonNull LogLevel level, @NonNull LogDomain domain, @NonNull String message) {
1986-
// this method will never be called if param level < this.level
1987-
// handle the message, for example piping it to a third party framework
1984+
19881985
}
19891986
}
19901987
// end::custom-logging[]

0 commit comments

Comments
 (0)