mongolog

package module
v0.0.0-...-6ccb305 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

README

Mongolog

GitHub Repo stars GitHub forks GitHub watchers GitHub code size in bytes

Description

a default mongodb driver log implementation

Installation

go get github.com/itzngga/mongolog

Usage

clientOptions := options.Client().ApplyURI("mongodb://localhost:27017/")
clientOptions.SetMonitor(mongolog.New()) // <- the logger

Example

to this example

License

GNU

Contribute

Pull Request are pleased to

Documentation

Index

Constants

View Source
const (
	LevelInfo   = iota
	LevelError  = iota
	LevelSilent = iota
)

Variables

View Source
var OptionsDefault = Options{
	Writer: os.Stdout,
	Level:  LevelInfo,
	Colors: true,
}

Functions

func New

func New(opt ...Options) *event.CommandMonitor

Types

type Level

type Level int

type Options

type Options struct {
	Writer io.Writer
	Level  Level
	Colors bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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