awszero

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: MIT Imports: 2 Imported by: 0

README

aws-zerolog

Zerolog wrapper for AWS Logger

Installation

go get github.com/ziflex/aws-zerolog

Quick start

package main

import (
	"os"

	"github.com/aws/aws-sdk-go-v2/config"
	"github.com/rs/zerolog"
	"github.com/ziflex/aws-zero"
)

func main() {
	logger := zerolog.New(os.Stdout)
	conf, err := config.LoadDefaultConfig(context.Background(), config.WithLogger(awszero.New(logger)))
	
	if err != nil {
		panic(err)
    }
	
	println(conf)
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(log zerolog.Logger) logging.Logger

New creates a Zerolog-based implementation of Smithy Logger.

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func (*Logger) Logf

func (l *Logger) Logf(classification logging.Classification, format string, v ...interface{})

Logf is expected to support the standard fmt package "verbs".

Jump to

Keyboard shortcuts

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