Categoryyunion.io/x/log
modulepackage
1.0.0
Repository: https://github.com/yunionio/log.git
Documentation: pkg.go.dev

# README

log

Log package for go.

Nicely color-format-coded in development (when a TTY is attached, otherwise just plain text):

Colored

Example

package main

import (
  "errors"

  "yunion.io/x/log"
)

func main() {
  log.Debugf("Debug msg")
  log.Infof("Info msg")
  log.Warningf("Warning msg")
  err := errors.New("Unknown error")
  log.Errorf("Error msg: %v", err)
}

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
V reports whether verbosity at the call site is at least the requested level.
No description provided by the author
No description provided by the author

# Structs

No description provided by the author

# Type aliases

Verbose is a boolean type that implements Infof (like Printf) etc.