Ability to specify custom logfile globally and per-function #3
Notifications
Due Date
No due date set.
Blocks
#4 Log results to test_results.txt.
josh/jtest
Reference: josh/jlog#3
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Status update?
If we want globally we basically already got that. I think the easiest and best approach would be to modify the jlog::log function to accept both the tokens and the log file name. Then we just write a wrapper for using the global log file. This way we can easily do a log file per function.
All we gotta do is use a base jlog::log function like this.
And have the global one defined too which is just a wrapper for the first one.
We can probably implement something like the ERROR macro this way.
I've implemented log_to_file(filename, message) variant aswell as a set_default_logfile method. I consider this issue closed, but if you have any further input go for it.
Kinda got this working. The global logger is inside of the shared header. It's pretty generic afaik
I got this done even better. Way more flexible now and way easier to implement custom loggers.
3e414abc8d