Discover Packages
github.com/jiu-u/oai-api
pkg
log
package
Version:
v0.0.0-...-272f778
Opens a new window with list of versions in this module.
Published: Jan 20, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
WithContext Returns a zap instance from the specified context
WithContext 从 context.Context 中获取存储的 zap 日志记录器。
WithValue Adds a field to the specified context
WithValue withValue会创建一个新的zapLogger上下文,并添加一些字段,然后存储在context.Context中。
将 zap 日志记录器及其附加的字段存储在 context.Context 中,以便在后续的处理中使用。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.