Skip to content
master
Go to file
Code

Latest commit

Introducing a structured logger, zap, to the internal logger. This is to address a common user complaint where logs are just a wall of text which is hard to parse through and find the error that's causing application to fail.

In this diff we implement current public API `Logger` via Zap, and adding private (for now) `withLogger` and `exitCode` which will be public once we iterate on the new logging interface. 

Following is a list of all new messages and fields.

msg | field | field
-- | -- | --
providing | type | constructor
supplying | type |  
invoke | function |  
received signal | signal |  
startup failed, rolling back | error |  
could not rollback cleanly | error |  
error encountered while applying options | error |  
fx.Invoke failed | function |  error |
failed to start | error |  
failed to stop cleanly | error |  
running |   |  



Ref T5424311 GO-77
869f710

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time

README.md

🦄 Fx GoDoc Github release Build Status Coverage Status Go Report Card

An application framework for Go that:

  • Makes dependency injection easy.
  • Eliminates the need for global state and func init().

Installation

We recommend locking to SemVer range ^1 using Glide:

glide get 'go.uber.org/fx#^1'

Alternatively you can add it as a dependency using go mod:

go get go.uber.org/fx@v1

Or by using dep:

dep ensure -add go.uber.org/fx@1.0.0

Stability

This library is v1 and follows SemVer strictly.

No breaking changes will be made to exported APIs before v2.0.0.

This project follows the Go Release Policy. Each major version of Go is supported until there are two newer major releases.

You can’t perform that action at this time.