diff --git a/logp/core.go b/logp/core.go index 38b2657..b2a7adc 100644 --- a/logp/core.go +++ b/logp/core.go @@ -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 } diff --git a/logp/options.go b/logp/options.go index 4b7efa3..638a4b7 100644 --- a/logp/options.go +++ b/logp/options.go @@ -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