google / google/flogger

how to customize the context

Open
#60 1 comment 0 reactions 0 assignees View on GitHub
P3
Dominant language
Java
Stars
1.5k
Forks
133
Avg merge
6m
Merged PRs (30d)
7

Description

Hi,

I'm new to flogger. Thanks for this wonderful fluent logger.

Currently, I use `atMostEvery()` often by calling `logger.at(level).atMostEvery(time, TimeUnit.MILLISECONDS).log(message);`

Is there's a way to customize the following context statement that are being appended to every log statement ?

`[CONTEXT ratelimit_period="2000 MILLISECONDS [skipped: 2]" ]` is a bit too verbose to my taste.

I'd like to shrink it down to just `[2000,2]`.

I hope I'm making a very reasonable request here :D

Thanks for any help!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.