You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,6 +92,14 @@ An option for developing Prebid Server in a reproducible environment isolated fr
92
92
93
93
Prebid Server is not currently intended to be imported by other projects. Go Modules is used to manage dependencies, which also makes it possible to import Prebid Server packages. This is not supported. We offer no guarantees regarding the stability of packages and do not adhere to semantic versioning guidelines.
94
94
95
+
## Swapping Global Dependencies
96
+
97
+
Logger is a global side-effectful dependency that sometimes needs to be swapped to modify the behavior.
98
+
The `Logger` package contains an interface definition for unstructured logging with built-in `glog` implementation.
99
+
The interface provides standard logging methods: `Debug`, `Info`, `Warn`, `Error`, and `Fatal`.
100
+
The `glog` implementation is based on `github.com/golang/glog` package and serves as the concrete implementation for the logging interface.
101
+
By default, the package uses the `glog` logger implementation.
102
+
95
103
## Contributing
96
104
> [!IMPORTANT]
97
105
> All contributions must follow the [Prebid Code of Conduct](https://prebid.org/code-of-conduct/) and the [Prebid Module Rules](https://docs.prebid.org/dev-docs/module-rules.html).
0 commit comments