 /// - Parameters:
 ///   - domain: the domain this logging function occurs in
 ///   - message: log message
-///   - level: log level (defaults to `level_debug`)
-public func g_log(domain: String, _ message: String, level: LogLevelFlags = .level_debug) {
+///   - level: log level (defaults to `.debug`)
+public func g_log(domain: String, _ message: String, level: LogLevelFlags = .debug) {
     var buffer = message
     if message.index(of: "%") != nil {
         buffer = message.reduce("") { $0 + ($1 == "%" ? "%%" : String($1)) }

///
/// - Parameters:
///   - message: log message
///   - level: log level (defaults to `level_debug`)
public func g_log(_ message: String, level: LogLevelFlags = .level_debug) {
    var buffer = message
    if message.index(of: "%") != nil {
        buffer = message.reduce("") { $0 + ($1 == "%" ? "%%" : String($1)) }

    withUnsafeMutableBytes(of: &buffer) {
        guard let buffer = $0.baseAddress else { return }
        let msg = buffer.assumingMemoryBound(to: CChar.self)
        g_logv(nil, level.value, msg, CVaListPointer(_fromUnsafeMutablePointer: buffer))
    }
}

