|
|
Home » Community » Newbie corner » RLOG in Linux
RLOG in Linux [message #50284] |
Wed, 12 September 2018 12:56  |
Giorgio
Messages: 218 Registered: August 2015
|
Experienced Member |
|
|
Hi there,
I added a RLOG line to an application. In Windows I find the logs in a .log file inside the directory of the application. In Linux there is no such .log file and I expected to find the log in /var/log/messages or in /var/log/syslog, but I do not find anything there. The Linux box is a Debian Stretch, if this is relevant.
Ciao,
gio
|
|
|
|
|
|
|
|
Re: RLOG in Linux [message #50307 is a reply to message #50303] |
Mon, 17 September 2018 11:10   |
Giorgio
Messages: 218 Registered: August 2015
|
Experienced Member |
|
|
Hi Klugier,
I have no .upp directory in user's home directory, in /root or in /usr/bin (where the program is installed). I have issued a find command in the whole file system with no results. Instead, I have the log messages in /var/log/messages and in /var/log/syslog, but they are logged not immediately, but in bulk after some time: e.g. I have in the /var/log/messages a bunch of logs with the same timestamp, but the log messages have been issued on different moments.
This is my code:
Value time = GetSysTime();
String timestamp = time.ToString();
RLOG("LineDashboard " + timestamp + " label selected");
And this is what I have in /var/log/messages:
Sep 14 09:29:53 myhost LineDashboard.desktop[820]: LineDashboard 14/09/2018 08:29:53 label selected
Sep 14 09:29:53 myhost LineDashboard.desktop[820]: LineDashboard 14/09/2018 08:39:53 label selected
Sep 14 09:29:53 myhost LineDashboard.desktop[820]: LineDashboard 14/09/2018 08:49:53 label selected
Sep 14 09:29:53 myhost LineDashboard.desktop[820]: LineDashboard 14/09/2018 08:59:53 label selected
Sep 14 09:29:53 myhost LineDashboard.desktop[820]: LineDashboard 14/09/2018 09:09:53 label selected
Sep 14 09:29:53 myhost LineDashboard.desktop[820]: LineDashboard 14/09/2018 09:19:53 label selected
The application has been compiled with upp-2018.1 on a Debian Stretch with a recent version of gcc (I do not remember the specific version, but is the one in the debian repository, so it should be recent) and it runs on a Debian Stretch (a different box with no toolchains).
Regards,
gio
|
|
|
Re: RLOG in Linux [message #50308 is a reply to message #50307] |
Mon, 17 September 2018 11:28   |
Oblivion
Messages: 1202 Registered: August 2007
|
Senior Contributor |
|
|
Hello Giorgio,
I have no .upp directory in user's home directory,
AFAIK, this directory is available (and may (?) have another name) if you have U++/Theide deployed on your machine.
A simple way to find that directory:
Open TheIde, run your application (or any example code) once, via TheIde, and then select TheIde->Build (menu) -> Open ouput directory from the menu.
By default, that directory should be under the .upp (or whatever its name is)
Best regards,
Oblivion
Github page: https://github.com/ismail-yilmaz
upp-components: https://github.com/ismail-yilmaz/upp-components
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Mon, 17 September 2018 11:28] Report message to a moderator
|
|
|
|
|
|
Re: RLOG in Linux [message #50357 is a reply to message #50354] |
Wed, 03 October 2018 13:55  |
omari
Messages: 276 Registered: March 2010
|
Experienced Member |
|
|
Hi Giorgio,
you can use StdLogSetup() to controle logging.
for example StdLogSetup(LOG_FILE | LOG_SYS); in order to send logging to the ~/.upp/appname/appnam.log file, and to /var/log/appname.log
you can set the logfilepath as second param of StdLogSetup : StdLogSetup(LOG_FILE , "/home/user/appname.log");
regards
omari.
|
|
|
Goto Forum:
Current Time: Sat Apr 26 20:34:35 CEST 2025
Total time taken to generate the page: 0.03154 seconds
|
|
|