We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QuoteEmptyFields
QuoteEmptyFields does not quote empty fields even when set to true explicitly. The following code
true
package main import ( "time" "github.com/sirupsen/logrus" prefixed "github.com/x-cray/logrus-prefixed-formatter" ) func init() { logrus.SetFormatter(&prefixed.TextFormatter{ TimestampFormat: time.RFC3339, FullTimestamp: true, ForceFormatting: true, QuoteEmptyFields: true, }) logrus.SetLevel(logrus.DebugLevel) } func main() { logrus.WithFields(logrus.Fields{ "prefix": "main", "emptyfield1": "", "emptyfield2": "", "number": 0, }).Debug("Started observing beach") }
outputs
[2023-01-28T18:32:38+05:00] DEBUG main: Started observing beach emptyfield1= emptyfield2= number=0
Notice the empty fields are not quoted. Am I missing something here?
The text was updated successfully, but these errors were encountered:
QuoteEmptyField
@x-cray pls help?
Sorry, something went wrong.
No branches or pull requests
QuoteEmptyFields
does not quote empty fields even when set totrue
explicitly. The following codeoutputs
Notice the empty fields are not quoted. Am I missing something here?
The text was updated successfully, but these errors were encountered: