Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimized scribes (similar to fast-logger)? #148

Open
saurabhnanda opened this issue Sep 27, 2023 · 1 comment
Open

Optimized scribes (similar to fast-logger)? #148

saurabhnanda opened this issue Sep 27, 2023 · 1 comment

Comments

@saurabhnanda
Copy link

saurabhnanda commented Sep 27, 2023

I'm planning to migrate a large codebase from a home-grown logging system (based on MonadLogger) to katip.

However, I was curious if katip scribes have been optimized on the lines of fast-logger, which led to creation of TimedFastLogger? There was a paper about this somewhere I had read a long time ago -- IIRC the authors of fast-logger had found a hotspot in generating & formatting timestamps for log messages and optimized it heavily.

@MichaelXavier
Copy link
Collaborator

I don't know about the paper you're referencing but if you look at the definition of a Scribe it's very generally specified. Your logging function gets an item with a timestamp so you could choose an appropriate way to render the timestamps. Does that get you started in the right direction?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants