[Gambas-user] possible bug in gb. loggig
Angel
angelnunez123 at gmail.com
Sun Sep 13 07:06:15 CEST 2020
The ComplexLogger object always returns "[ComplexLogger.Log.60]" as the
file, method and line that invoked the object.
A small example.
' Gambas module file
Private milog As ComplexLogger
Private salida_consola As ConsoleHandler
Private contador As Integer
Public Sub Main()
Dim a As Integer
salida_consola = New ConsoleHandler(ConsoleHandler.STDOUT,
LogLevel.Debug)
milog = New ComplexLogger("", salida_consola)
milog.Begin()
milog("Creado el objeto milog y el objeto salida_consola")
For a = 0 To 10
Inc contador
sub1
sub2
Next
End
Private Sub sub1()
milog("Estoy en sub1 y el valor de contador es: " & contador,
LogLevel.Error)
End
Private Sub sub2()
milog("Estoy en sub2 CONTADOR = " & contador)
End
my system:
[System]
Gambas=3.15.1
OperatingSystem=Linux
Kernel=4.19.0-10-amd64
Architecture=x86_64
Distribution=debian 10.5
Desktop=MATE
Theme=fusion
Language=es_ES.UTF-8
Memory=7966M
[Libraries]
Cairo=libcairo.so.2.11600.0
Curl=libcurl.so.4.5.0
DBus=libdbus-1.so.3.19.13
GStreamer=libgstreamer-1.0.so.0.1404.0
GTK+2=libgtk-x11-2.0.so.0.2400.32
GTK+3=libgtk-3.so.0.2404.1
OpenGL=libGL.so.1.7.0
Poppler=libpoppler.so.82.0.0
QT4=libQtCore.so.4.8.7
QT5=libQt5Core.so.5.11.3
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6
[Environment]
CLUTTER_BACKEND=x11
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DESKTOP_SESSION=mate
DISPLAY=:0
GB_GUI=gb.qt5
GDMSESSION=mate
GIO_LAUNCHED_DESKTOP_FILE=<home>/.local/share/applications/menulibre-gambas.desktop
GIO_LAUNCHED_DESKTOP_FILE_PID=2628
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
GTK_MODULES=gail:atk-bridge:canberra-gtk-module
GTK_OVERLAY_SCROLLING=0
HOME=<home>
LANG=es_ES.UTF-8
LOGNAME=<user>
MATE_DESKTOP_SESSION_ID=this-is-deprecated
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
PWD=<home>
QT_ACCESSIBILITY=1
QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_LOGGING_RULES=*.debug=false
QT_SCALE_FACTOR=1
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/1092,unix/<hostname>:/tmp/.ICE-unix/1092
SHELL=/bin/bash
SSH_AGENT_PID=1124
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TZ=:/etc/localtime
USER=<user>
XAUTHORITY=<home>/.Xauthority
XDG_CURRENT_DESKTOP=MATE
XDG_DATA_DIRS=/usr/share/mate:/usr/local/share/:/usr/share/
XDG_GREETER_DATA_DIR=/var/lib/lightdm/data/<user>
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=mate
XDG_SESSION_ID=2
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SESSION_TYPE=x11
XDG_VTNR=7
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20200913/07cb4a71/attachment.htm>
More information about the User
mailing list