Cant print string to log directly, only through sprintf
xakepp35 opened this issue · comments
I want efficiency, i can see function
func (entry *Entry) Log(level Level, args ...interface{}) {
if entry.Logger.IsLevelEnabled(level) {
entry.log(level, fmt.Sprint(args...))
}
}
what if i have a string and i want just to print it to log directly, without any fmt.Sprint
- what should i do? Stuff is not exported, this is not even a feature request but an architecture issue! In first place you have to support something like log.Put(level, string)
method and only then optionally care about args and other inefficient convenient stuff. I dont see such method, if i have formatted string externally - i think its a architectural bug, making pkg users unable to efficiently put a string directly to log!
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.