Skip to content

Commit

Permalink
perf: rename logVerbose() to log()
Browse files Browse the repository at this point in the history
  • Loading branch information
tisfeng committed Apr 22, 2024
1 parent 9300712 commit 103706f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Easydict/objc/MMKit/Log/MMLog.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 103706f

Please sign in to comment.