chlog

package
v0.0.0-...-f5c3557 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package chlog provides clog-based logging for testing

Usage is really simple:

import "github.com/iheartradio/cog/check/chlog"
func TestStuff(t *testing.T) {
    log := chlog.New(t)
}

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config(c *check.C) clog.Config

Config gets logging config for testing

func New

func New(tb testing.TB) (*check.C, *clog.Ctx)

New creates a new TestLog that outputs all log messages to the given TB. This logs at level Debug by default.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL