Hello Julia community,
I read the logging documentation, but I am still struggling to create a custom logger. Basically, what I want to do is to replicate what I do in python, that is, to create a logger on info level, but to show the function name, line number, time that the line was executed, and the message. In python, it would be something like:
fmt_file = ( "%(levelname)s %(asctime)s [%(filename)s:%(funcName)s:%(lineno)d] %(message)s" ) file_formatter = logging.Formatter(fmt_file, "%Y-%m-%d %H:%M:%S")
In Julia, I tried:
@logmsg Logging.Info "Message" _line=__LINE__
but it does not print the line.
Can you let me know how I can make this to work, or what other approach I can use?
Thanks in advance for any help or insight that you can provide.