From 103706fe997fc4a53114b2e1740e5c3b01cb8249 Mon Sep 17 00:00:00 2001 From: tisfeng Date: Mon, 22 Apr 2024 20:43:55 +0800 Subject: [PATCH] perf: rename logVerbose() to log() --- Easydict/objc/MMKit/Log/MMLog.swift | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Easydict/objc/MMKit/Log/MMLog.swift b/Easydict/objc/MMKit/Log/MMLog.swift index 7f03e9953..924587e8a 100644 --- a/Easydict/objc/MMKit/Log/MMLog.swift +++ b/Easydict/objc/MMKit/Log/MMLog.swift @@ -12,15 +12,16 @@ import CocoaLumberjackSwift +// Only log in debug mode, like MMLog. @inlinable -public func logInfo( +public func log( _ message: @autoclosure () -> String, file: StaticString = #file, function: StaticString = #function, line: UInt = #line, ddlog: DDLog = MMManagerForLog.sharedDDLog() ) { - DDLogInfo( + DDLogVerbose( message(), level: MMDefaultLogLevel, file: file, @@ -32,14 +33,14 @@ public func logInfo( } @inlinable -public func logVerbose( +public func logInfo( _ message: @autoclosure () -> String, file: StaticString = #file, function: StaticString = #function, line: UInt = #line, ddlog: DDLog = MMManagerForLog.sharedDDLog() ) { - DDLogVerbose( + DDLogInfo( message(), level: MMDefaultLogLevel, file: file,