Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions logp/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,8 @@ func TestingSetup(options ...Option) error {

// ObserverLogs provides the list of logs generated during the observation
// process.
//
// Deprecated: Use logptest.NewTestingLoggerWithObserver.
func ObserverLogs() *observer.ObservedLogs {
return loadLogger().observedLogs
}
Expand Down
2 changes: 2 additions & 0 deletions logp/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ func WithSelectors(selectors ...string) Option {

// ToObserverOutput specifies that the output should be collected in memory so
// that they can be read by an observer by calling ObserverLogs().
//
// Deprecated: Use logptest.NewTestingLoggerWithObserver.
func ToObserverOutput() Option {
return func(cfg *Config) {
cfg.toObserver = true
Expand Down
Loading