How to print debug lines in a log file on a Linux application

1
I have an application running in a Linux environment. The java actions I use have Core.getLogger().debug() functionality. Now I want to show the debug lines in the log file. Can anyone tell me how.
asked
2 answers
2

You can do this via m2ee:

loglevel SysLogSubscriber ConnectionBus_Update DEBUG

(replacing ConnectionBus_Update with your lognode, note that everything is case sensitive)

Assuming you're running in the Mendix private cloud, you can then view the logs via:

tail -f -n100 /var/log/xas2/yourappname.log

or

less /var/log/xas2/yourappname.log

(replacing yourappname with your appname)

To get a list of available lognodes, simply issue the "loglevel" command. Note that lognodes only show up after the first time they've logged something.

answered
0

You can change the loglevels by using the m2ee loglevel command

answered