Skip to content

Commit

Permalink
docs: autoupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinJWendt committed Apr 3, 2023
1 parent 107f341 commit 971fa81
Show file tree
Hide file tree
Showing 68 changed files with 88 additions and 68 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1826,7 +1826,10 @@ func main() {
```go
package main

import "github.com/pterm/pterm"
import (
"github.com/pterm/pterm"
"time"
)

func main() {
logger := pterm.DefaultLogger.WithLevel(pterm.LogLevelTrace) // Only show logs with a level of Trace or higher.
Expand All @@ -1845,6 +1848,7 @@ func main() {
logger.Warn("Oh no, I see an error coming to us!", logger.Args("speed", 88, "measures", "mph"))
logger.Error("Damn, here it is!", logger.Args("error", "something went wrong"))
logger.Info("But what's really cool is, that you can print very long logs, and PTerm will automatically wrap them for you! Say goodbye to text, that has weird line breaks!", logger.Args("very", "long"))
time.Sleep(time.Second * 2)
logger.Fatal("Oh no, this process is getting killed!", logger.Args("fatal", true))
}

Expand Down
6 changes: 5 additions & 1 deletion _examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1703,7 +1703,10 @@ func main() {
```go
package main

import "github.com/pterm/pterm"
import (
"github.com/pterm/pterm"
"time"
)

func main() {
logger := pterm.DefaultLogger.WithLevel(pterm.LogLevelTrace) // Only show logs with a level of Trace or higher.
Expand All @@ -1722,6 +1725,7 @@ func main() {
logger.Warn("Oh no, I see an error coming to us!", logger.Args("speed", 88, "measures", "mph"))
logger.Error("Damn, here it is!", logger.Args("error", "something went wrong"))
logger.Info("But what's really cool is, that you can print very long logs, and PTerm will automatically wrap them for you! Say goodbye to text, that has weird line breaks!", logger.Args("very", "long"))
time.Sleep(time.Second * 2)
logger.Fatal("Oh no, this process is getting killed!", logger.Args("fatal", true))
}

Expand Down
2 changes: 1 addition & 1 deletion _examples/area/center/animation.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion _examples/area/default/animation.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion _examples/area/demo/animation.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion _examples/area/dynamic-chart/animation.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 971fa81

Please sign in to comment.