Skip to content

QF210520-2 -- Remove text from custom logger example #460

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,6 @@ public void testLogging() {

public void testEnableCustomLogging() {
// tag::set-custom-logging[]
// this custom logger will never be asked to log an event
// with a log level < WARNING
Database.log.setCustom(new LogTestLogger(LogLevel.WARNING)); // <.>
// end::set-custom-logging[]
}
Expand Down Expand Up @@ -1497,8 +1495,6 @@ class LogTestLogger implements Logger {

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