You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Structured Key-Value printer is twice slower than the Template or Base printers, so I have an idea that will fix the problem and get a better logging experience.
Description
Expected function type:
typePrinterComposerinterface {
Interface(keystring, valueinterface{}) PrinterComposerString(keystring, valuestring) PrinterComposerInt(keystring, valueint64) PrinterComposerBool(keystring, valuebool) PrinterComposer// And so on...// A function that is going to Write to the Writer from a linked buffer.Flush() PrinterComposer
}
typePrintSC=func(messagestring) PrinterComposer
Motivation
Structured Key-Value printer is twice slower than the
Template
orBase
printers, so I have an idea that will fix the problem and get a better logging experience.Description
Expected function type:
Expected usage:
The idea is to get type-safe and fast structured logging.
The text was updated successfully, but these errors were encountered: