Movatterモバイル変換


[0]ホーム

URL:


clilog

package
v2.23.0Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License:AGPL-3.0Imports:15Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Overview

Package clilog provides a fluent API for configuring structured logging.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeBuilder

type Builder struct {Filter      []stringHumanstringJSONstringStackdriverstringTraceboolVerbosebool}

funcNew

func New(opts ...Option) *Builder

func (*Builder)Build

func (b *Builder) Build(inv *serpent.Invocation) (logslog.Logger, closeLog func(), errerror)

typeLumberjackWriteCloseFixeradded inv2.18.0

type LumberjackWriteCloseFixer struct {Writerio.WriteCloser// contains filtered or unexported fields}

LumberjackWriteCloseFixer is a wrapper around an io.WriteCloser thatprevents writes after Close. This is necessary because lumberjackre-opens the file on Write.

func (*LumberjackWriteCloseFixer)Closeadded inv2.18.0

func (*LumberjackWriteCloseFixer)Writeadded inv2.18.0

func (c *LumberjackWriteCloseFixer) Write(p []byte) (int,error)

typeOption

type Option func(*Builder)

funcFromDeploymentValues

func FromDeploymentValues(vals *codersdk.DeploymentValues)Option

funcWithFilter

func WithFilter(filters ...string)Option

funcWithHuman

func WithHuman(locstring)Option

funcWithJSON

func WithJSON(locstring)Option

funcWithStackdriver

func WithStackdriver(locstring)Option

funcWithTrace

func WithTrace()Option

funcWithVerbose

func WithVerbose()Option

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp