-
Notifications
You must be signed in to change notification settings - Fork 11
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
__FILE__ / __FUNCTION__ / __LINE__ support in metadata #2
Comments
yep you're right! I'll support this with the next update. thanks! |
Nice, looking forward to it, excellent work so far. cheers! |
Today, I've found a bit time to work on it. Cheers! |
Thanks alot, really appreciated. Concerning the function string, I use |
I believe this has gone in regression. With the current version of mlog, FILE and LINE are called in te templated write_message, which is called only in mlog.hpp. |
Hey there and thanks for this library, agreed that boost::log is pretty heavy and I'm also looking for a lighter alternative.
I was wondering if you had any plans to support the standard defined preprocessor macros in the
mlog::log_metadata
struct, such as__FILE__
,__FUNCTION__
,__LINE__
, etc. I find it much easier to look up in the source code where a problem is with these prepended to my log string, but they need to be captured at the macro level.For now I'm just going to define my own macros and build the string there, but I think it would be a nice feature (and relatively cheap) to be able to control that behavior from the
write_to_log
virtual method.cheers,
Rich
The text was updated successfully, but these errors were encountered: