Request: way to call only the non-state parts of loguru::init()
- Dominant language
- C++
- Stars
- 1.9k
- Forks
- 280
- Avg merge
- 7m
- Merged PRs (30d)
- 4
Description
Thank you for this library, which looks very useful! I am using it in a shared library that will be loaded by other people's code. I would like to use loguru::init(), but (1) I don't want to break any atexit() the calling code may be using, and (2) I don't have argc/argv.
Would you be willing to pull the parts of init() that don't touch application state into a separate function that I could call (and that init() would continue to call)? E.g., I'd like to be able to use the getcwd and preamble parts of init(), but not the rest.
Thank you for considering this request!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the implementation of loguru::init() and tracing its getcwd, preamble, atexit(), and argc/argv handling. Determine which behavior can be exposed independently for shared-library callers, while preserving init() behavior; done means the requested non-state initialization path is available without requiring argc/argv or interfering with caller atexit() use.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- observability-sre
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100