Categorygithub.com/zitadel/logging
modulepackage
0.6.1
Repository: https://github.com/zitadel/logging.git
Documentation: pkg.go.dev

# README

logging

semantic-release Release license release Go Report Card

This project is in alpha state. It can AND will continue breaking until version 1.0.0 is released

What Is It

TBD

Supported Go Versions

For security reasons, we only support and recommend the use of one of the latest two Go versions (:white_check_mark:).
Versions that also build are marked with :warning:.

VersionSupported
<1.21:x:
1.21:white_check_mark:
1.22:white_check_mark:

License

The full functionality of this library is and stays open source and free to use for everyone. Visit our website and get in touch.

See the exact licensing terms here

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
EnableHTTPClient adds slog functionality to the HTTP client.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
FromContext takes a Logger from the context, if it was previously set by [ToContext].
No description provided by the author
No description provided by the author
No description provided by the author
Deprecated: Log creates a new entry with an id.
No description provided by the author
No description provided by the author
Deprecated: LogWithFields creates a new entry with an id and the given fields.
Middleware enables request logging and sets a logger to the request context.
New instantiates a new entry.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SetIDKey key of id in logentry.
No description provided by the author
No description provided by the author
StringValuer returns a Valuer that forces the logger to use the type's String method, even in json ouput mode.
ToContext sets a Logger to the context.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WithClientDurationFunc allows overiding the request duration for testing.
WithClientGroup groups the log attributes produced by the client.
WithClientRequestAttr allows customizing the information used from a request as request attributes.
WithClientResponseAttr allows customizing the information used from a response as response attributes.
WithDurationFunc allows overriding the request duration for testing.
No description provided by the author
WithFallbackLogger uses the passed logger if none was found in the context.
WithFields creates a new entry without an id and the given fields.
WithGroup groups the log attributes produced by the middleware.
WithIDFunc enables the creating of request IDs in the middleware, which are then attached to the logger.
WithLoggedWriter allows customizing the writer from which post-request attributes are taken.
WitLogger sets the passed logger with request attributes into the Request's context.
WithRequestAttr allows customizing the information used from a request as request attributes.

# Constants

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
Entry
No description provided by the author

# Interfaces

LoggedWriter stores information regarding the response.

# Type aliases

No description provided by the author
No description provided by the author