[Gambas-user] Logger $(callLocation) always returns ComplexLogger.Log.60

Patrik Karlsson patrik at trixon.se
Sat Jan 27 10:44:50 CET 2018


Using 3.10.90 c1c52f0 (master), given the code below, I get the output:
[01/27/2018 11:38:19.285] [INFO] [ComplexLogger.Log.60] Hello world

But I would expect something like
[01/27/2018 11:38:19.285] [INFO] [Main.Main.7] Hello world

Am I doing something wrong here?


' Gambas module file

Public Sub Main()

  Dim hLog As New Logger(Logger.Info, "[$(now)] [$(levelname)]
[$(callLocation)] $(message)", Logger.Stdout)
  hLog.Begin()
  hLog.Log("Hello world", Logger.Info)

End

/Patrik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20180127/e4c598c7/attachment-0001.html>


More information about the User mailing list