Ubuntu java error logging

10,172

here how you can enable logging ... (notice this is just java logging and the application logging is different from java logging)

  • Type

    which java

you get something like this /somewhere/jdk1.7.0_21_linux_x64/bin/java

  • Go to the path (exclude the last"java" in the path so it end with bin. cd /somewhere/jdk1.7.0_21_linux_x64/bin/

  • execute the java control panel this way

./ControlPanel

  • You get the screen below (go to the advanced tab) and just enable the logging you like.

enter image description here

Share:
10,172
Caballero
Author by

Caballero

Updated on June 04, 2022

Comments

  • Caballero
    Caballero almost 2 years

    Is there a way on Ubuntu to enable global java exception logging? In my case I have php-fpm executing java jar with php function exec(), but I don't get any exceptions logged from Java anywhere.

    I'm on Ubuntu 13.10 (Saucy Salamander) and my Java version is

    Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
    Java HotSpot(TM) 64-Bit Server VM (build 24.0-b56, mixed mode)