Documentation ¶ Index ¶ Constants func Component(name string) *log.Entry func Node(tag string) *log.Entry func Task(name string) *log.Entry func WithNodeTag(entry *log.Entry, tag string) *log.Entry type Config type Handle func Setup(cfg Config) (*Handle, error) func (h *Handle) Close() error Constants ¶ View Source const ( FieldComponent = "component" FieldNodeTag = "node_tag" FieldTask = "task" ) Variables ¶ This section is empty. Functions ¶ func Component ¶ func Component(name string) *log.Entry func Node ¶ func Node(tag string) *log.Entry func Task ¶ func Task(name string) *log.Entry func WithNodeTag ¶ func WithNodeTag(entry *log.Entry, tag string) *log.Entry Types ¶ type Config ¶ type Config struct { Level string Output string } type Handle ¶ type Handle struct { // contains filtered or unexported fields } func Setup ¶ func Setup(cfg Config) (*Handle, error) func (*Handle) Close ¶ func (h *Handle) Close() error Source Files ¶ View all Source files logx.go Click to show internal directories. Click to hide internal directories.