diff --git a/README.md b/README.md index 0a28b90..4853db0 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ log.Error("failed to bake cookies", "err", err) - Made with VHS + Made with VHS You can use `log.Print()` to print messages without a level prefix. @@ -100,7 +100,7 @@ if butter { - + ### Levels @@ -157,7 +157,7 @@ logger.Info("Finished baking") - + Use `log.SetFormatter()` or `log.WithFormatter()` to change the output format. @@ -197,14 +197,15 @@ log.ErrorLevelStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("0")) // Add a custom style for key `err` log.KeyStyles["err"] = lipgloss.NewStyle().Foreground(lipgloss.Color("204")) +log.ValueStyles["err"] = lipgloss.NewStyle().Bold(true) log.Error("Whoops!", "err", "kitchen on fire") ``` - - + + - + ### Sub-logger @@ -237,7 +238,7 @@ for item := 1; i <= 100; i++ { - + Or arguments: @@ -252,7 +253,7 @@ for temp := 375; temp <= 400; temp++ { - + ### Helper Functions @@ -274,7 +275,7 @@ startOven(400) // INFO Starting oven degree=400 - + This will use the _caller_ function (`startOven`) line number instead of the