# Packages
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
CapturePanic is used to capture panic, it will log the panic and also return the error through pointer.
NewNoop return a noop logger.
# Structs
MockLogger returns a mock for Logger interface.
# Interfaces
Logger is our abstraction for logging Usage examples:
import "github.com/uber/cadence/common/log/tag" 1) logger = logger.WithTags( tag.WorkflowNextEventID( 123), tag.WorkflowActionWorkflowStarted, tag.WorkflowDomainID("test-domain-id")) logger.Info("hello world") 2) logger.Info("hello world", tag.WorkflowNextEventID( 123), tag.WorkflowActionWorkflowStarted, tag.WorkflowDomainID("test-domain-id")) ) Note: msg should be static, it is not recommended to use fmt.Sprintf() for msg.