Skip to content

Commit b9b2cf9

Browse files
authored
feat: deprecate observer output (#367)
* feat: deprecate observer output * Update core.go
1 parent 03ca452 commit b9b2cf9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

logp/core.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,8 @@ func TestingSetup(options ...Option) error {
417417

418418
// ObserverLogs provides the list of logs generated during the observation
419419
// process.
420+
//
421+
// Deprecated: Use logptest.NewTestingLoggerWithObserver.
420422
func ObserverLogs() *observer.ObservedLogs {
421423
return loadLogger().observedLogs
422424
}

logp/options.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ func WithSelectors(selectors ...string) Option {
3737

3838
// ToObserverOutput specifies that the output should be collected in memory so
3939
// that they can be read by an observer by calling ObserverLogs().
40+
//
41+
// Deprecated: Use logptest.NewTestingLoggerWithObserver.
4042
func ToObserverOutput() Option {
4143
return func(cfg *Config) {
4244
cfg.toObserver = true

0 commit comments

Comments
 (0)