Skip to content
Open
Changes from 4 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
5 changes: 3 additions & 2 deletions Swift/Log.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
import Foundation
import CouchbaseLiteSwift_Private

internal class Log {
public final class Log {
/// Writes a log message to all the enabled log sinks.
internal static func log(domain: LogDomain, level: LogLevel, message: String) {
/// - Note: `Unsupported API` Internal used for testing purpose.
static func log(domain: LogDomain, level: LogLevel, message: String) {
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.

let cDomain = CBLLogDomain.init(rawValue: domain.rawValue)
let cLevel = CBLLogLevel(rawValue: UInt(level.rawValue))!
CBLLog.writeSwiftLog(cDomain, level: cLevel, message: message)
Expand Down