[Gambas-bugtracker] Bug #2422: Output of Logger should default to stdout, instead it is undefined
bugtracker at gambaswiki.org
bugtracker at gambaswiki.org
Thu Dec 16 22:50:14 CET 2021
http://gambaswiki.org/bugtracker/edit?object=BUG.2422&from=L21haW4-
Cristiano GUADAGNINO reported a new bug.
Summary
-------
Output of Logger should default to stdout, instead it is undefined
Type : Bug
Priority : Medium
Gambas version : 3.16
Product : Other components
Description
-----------
This page (https://gambaswiki.org/wiki/comp/gb.logging/logger/_new) says that if sOutput is not specified then log messages are sent to stdout.
However, if I instantiate the class this way:
hLogger = New Logger(LogLvl, LogFormat)
where LogLvl = Log.Error and LogFormat = Log.DefaultFormat, I always get the error "Log file not writable" when I execute hLogger.Begin.
On the other hand, if I explicitly do
hLogger = New Logger(LogLvl, LogFormat, ":stdout")
then hLogger.Begin works as expected.
System information
------------------
[System]
Gambas=3.16.3
OperatingSystem=Linux
Kernel=5.15.7-1-default
Architecture=x86_64
Distribution=openSUSE Tumbleweed 20211213
Desktop=KDE5
Font=Noto Sans,10
Scale=7
Theme=breeze
Language=it_IT.UTF-8
Memory=11665M
[Libraries]
Cairo=/usr/lib64/libcairo.so.2.11600.0
Curl=/usr/lib64/libcurl.so.4.7.0
DBus=/usr/lib64/libdbus-1.so.3.19.13
GDK2=/usr/lib64/libgdk-x11-2.0.so.0.2400.33
GDK3=/usr/lib64/libgdk-3.so.0.2404.26
GStreamer=/usr/lib64/libgstreamer-1.0.so.0.1805.0
GTK+2=/usr/lib64/libgtk-x11-2.0.so.0.2400.33
GTK+3=/usr/lib64/libgtk-3.so.0.2404.26
OpenGL=/usr/lib64/libGL.so.1.7.0
Poppler=/usr/lib64/libpoppler.so.115.0.0
Poppler=/usr/lib64/libpoppler.so.116.0.0
Poppler=/usr/lib64/libpoppler.so.83.0.0
Poppler=/usr/lib64/libpoppler.so.92.0.0
Poppler=/usr/lib64/libpoppler.so.93.0.0
QT4=/usr/lib64/libQtCore.so.4.8.7
QT5=/usr/lib64/libQt5Core.so.5.15.2
SDL=/usr/lib/libSDL-1.3.so.0.0.0
SDL=/usr/lib64/libSDL-1.2.so.0.11.4
SQLite=/usr/lib64/libsqlite3.so.0.8.6
[Environment]
AUDIODRIVER=pulseaudio
BASH_FUNC_mc%%=() { . /usr/share/mc/mc-wrapper.sh
}
CONFIG_SITE=/usr/share/site/x86_64-unknown-linux-gnu
CPU=x86_64
CSHEDIT=emacs
CVS_RSH=ssh
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DEBUGINFOD_URLS=https://debuginfod.opensuse.org/
DESKTOP_SESSION=/usr/share/xsessions/plasma5
DISPLAY=:0
EDITOR=/usr/bin/joe
FROM_HEADER=
FTP_PROXY=http://127.0.0.1:3128
GB_GUI=gb.qt5
GPG_TTY=not a tty
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:<home>/.gtkrc-2.0:<home>/.config/gtkrc-2.0
GTK_IM_MODULE=ibus
GTK_MODULES=canberra-gtk-module
GTK_RC_FILES=/etc/gtk/gtkrc:<home>/.gtkrc:<home>/.config/gtkrc
G_BROKEN_FILENAMES=1
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-15,CP1252
HISTSIZE=1000
HOME=<home>
HOST=<hostname>
HOSTNAME=<hostname>
HOSTTYPE=x86_64
HTTPS_PROXY=http://127.0.0.1:3128
HTTP_PROXY=http://127.0.0.1:3128
INPUT_METHOD=ibus
JAVA_BINDIR=/usr/lib/jvm/zulu-11/bin
JAVA_HOME=/usr/lib/jvm/zulu-11
JAVA_ROOT=/usr/lib/jvm/zulu-11
JDK_HOME=/usr/lib/jvm/zulu-11
JRE_HOME=/usr/lib64/jvm/java-11-openjdk-11
KDE_APPLICATIONS_AS_SCOPE=1
KDE_FULL_SESSION=true
KDE_SESSION_UID=1000
KDE_SESSION_VERSION=5
LANG=it_IT.UTF-8
LANGUAGE=it_IT.UTF-8
LC_ALL=it_IT.UTF-8
LESS= -R
LESSCLOSE=lessclose.sh %s %s
LESSKEY=/usr/etc/lesskey.bin
LESSOPEN=| /usr/bin/src-hilite-lesspipe.sh %s
LESS_ADVANCED_PREPROCESSOR=no
LOGNAME=<user>
MACHTYPE=x86_64-suse-linux
MAIL=/var/spool/mail/<user>
MANPATH=/usr/local/man:/usr/share/man
MANPATHISSET=yes
MINICOM=-c on
MORE=-sl
NO_PROXY=localhost, 127.0.0.1, .bankadati.it, .bkd, .gcv.dom
OSTYPE=linux
PAGER=less
PATH=<home>/bin:/usr/local/bin:/usr/bin:/bin:/snap/bin:/usr/sbin
PROFILEREAD=true
PWD=<home>
PYTHONSTARTUP=/etc/pythonstart
QEMU_AUDIO_DRV=pa
QT4_IM_MODULE=xim
QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_IM_MODULE=ibus
QT_IM_SWITCHER=imsw-multi
QT_LOGGING_RULES=*.debug=false
SDK_HOME=/usr/lib/jvm/zulu-11
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/5950,unix/<hostname>:/tmp/.ICE-unix/5950
SHELL=/bin/bash
SHLVL=0
SOCKS5_SERVER=
SOCKS_PROXY=
SSH_AGENT_PID=5883
SSH_ASKPASS=/usr/libexec/ssh/ssh-askpass
SSH_AUTH_SOCK=/tmp/ssh-XXXXXX71gAou/agent.5754
SYSTEMD_EXEC_PID=5720
TERM=xterm
TZ=:/etc/localtime
USER=<user>
VDPAU_DRIVER=va_gl
WINDOWMANAGER=/usr/bin/startplasma-x11
XAUTHLOCALHOSTNAME=<hostname>
XAUTHORITY=/run/user/1000/xauth_wIVbFt
XCURSOR_SIZE=32
XCURSOR_THEME=oreo_pink_cursors
XDG_CONFIG_DIRS=<home>/.config/kdedefaults:/etc/xdg:/usr/etc/xdg
XDG_CURRENT_DESKTOP=KDE
XDG_DATA_DIRS=<home>/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/share:/var/lib/snapd/desktop
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=KDE
XDG_SESSION_ID=2
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
XDG_SESSION_TYPE=x11
XDG_VTNR=7
XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB
XMODIFIERS=@im=ibus
XNLSPATH=/usr/share/X11/nls
XSESSION_IS_UP=yes
force_s3tc_enable=true
ftp_proxy=http://127.0.0.1:3128
gopher_proxy=
http_proxy=http://127.0.0.1:3128
https_proxy=http://127.0.0.1:3128
no_proxy=localhost, 127.0.0.1, .bankadati.it, .bkd, .gcv.dom
socks_proxy=
More information about the Bugtracker
mailing list