mirror of https://github.com/sirupsen/logrus.git
Fix comments
This commit is contained in:
parent
835cd13cb5
commit
f7a4f6311b
10
README.md
10
README.md
|
@ -26,11 +26,11 @@ logrus.Debug("Something debugworthy happened: %s", importantStuff")
|
|||
logrus.Info("Something infoworthy happened: %s", importantStuff")
|
||||
|
||||
logrus.Warning("Something bad happened: %s", importantStuff")
|
||||
# Reports to Airbrake
|
||||
// Reports to Airbrake
|
||||
|
||||
logrus.Fatal("Something fatal happened: %s", importantStuff")
|
||||
# Reports to Airbrake
|
||||
# Then exits
|
||||
// Reports to Airbrake
|
||||
// Then exits
|
||||
```
|
||||
|
||||
Types are encouraged to include their own logging object. This allows to set a
|
||||
|
@ -58,9 +58,9 @@ func (walrus *Walrus) Mate(partner *Walrus) error {
|
|||
}
|
||||
|
||||
walrus.logger.Info("Walrus with tusk sizes %d and %d are mating!", walrus.TuskSize, partner.TuskSize)
|
||||
# Generates a logging message: <timestamp> [Info] [Walrus] Walrus with tusk sizes <int> and <int> are mating!
|
||||
// Generates a logging message: <timestamp> [Info] [Walrus] Walrus with tusk sizes <int> and <int> are mating!
|
||||
|
||||
# Walrus mating happens here
|
||||
// Walrus mating happens here
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue