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

Enable instantiating logger with format-string #366

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

manne65-hd
Copy link

Hi there @ FatFreeFramework,
let me first say THANK YOU for such a great piece of software!

I am currently working on a "big" cronjob, that uses a lot of logging. As I prefer to use a different format string for date/time, it kind of annoyed me, to add my custom format-string to every write-method-call.

So I gave it a shot and extended the log-class with a feature to instantiate it with a desired format-string that will be used for all subsequent write-method-calls that don't pass a format-string.

As far as I have tested, this retains full backward compatibilty, while just adding the new feature.

If you find it useful, maybe you can merge it.

Thanks again for FatFreeFramework,
Manfred

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

Successfully merging this pull request may close these issues.

2 participants