Skip to content
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
6 changes: 3 additions & 3 deletions Swift/Log.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ public class Log {

init() { }

// For Unit Tests

static func log(domain: LogDomain, level: LogLevel, message: String) {
/// Writes a log message to all the enabled log sinks.
/// - Note: `Unsupported API` Internal used for testing purpose.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to make public as well.

public static func log(domain: LogDomain, level: LogLevel, message: String) {
let cDomain = CBLLogDomain.init(rawValue: UInt(domain.rawValue))
let cLevel = CBLLogLevel(rawValue: UInt(level.rawValue))!
CBLDatabase.log().log(to: cDomain, level: cLevel, message: message)
Expand Down