Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (533)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  How do you turn on logging in java 5?  (Read 2026 times)
0 Members and 1 Guest are viewing this topic.
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Posted 2005-08-04 16:12:13 »

Webstart used to be so easy to turn on logging - you'd go to preferences, and lo and behold there was a field to type where you wanted to log to, and if you wanted to log or not (checkbox).

Now, as part of Sun's bid to make java successively worse in each new release Wink Tongue all that has gone.

There's nothing about this in Sun's JWS docs on the docs linked to from java.sun.com (they dont list it on the "enhancements" page either).

malloc will be first against the wall when the revolution comes...
Offline Alan_W

JGO Knight


Medals: 8
Projects: 3


Java tames rock!


« Reply #1 - Posted 2005-08-04 20:22:24 »

I also find the loss of webstart annoying ( It took me a while to find out how to delete downloaded apps. ) 

You can turn logging on in windows by opening Control Panel and clicking on the Java Icon, then Advanced Tab, the expand the debugging tree.  However there doesn't appear to be any way of specifying where it goes.

Alan

Time flies like a bird. Fruit flies like a banana.
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #2 - Posted 2005-08-04 21:04:03 »

um....do you know where it does go, then? Huh

malloc will be first against the wall when the revolution comes...
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #3 - Posted 2005-08-08 14:07:25 »

Similar to tracing, logging is a facility to redirect any output in the Java Console to a log file using the Java Logging API. Logging can be turned on by enabling the property javaplugin.logging:

    -Djavaplugin.logging=true

Other Options
File Names

The names of the trace and log files are

    plugin<modified version number>.trace
    plugin<modified version number>.log

where the <modified version number> includes the major, minor and patch version numbers; e.g., plugin142_06.trace or plugin150.log
File Locations

The default location (directory) of the trace and log files is:

    * <user.home>/.java/deployment/log on Unix/Linux
    * <User Application Data Folder>\Sun\Java\Deployment\log on Windows

where <User Application Data Folder> is as defined here.

If the environment variable USER_JPI_PROFILE is set to <user plugin home> then the trace and log files will be written to:

    * <user plugin home>/.java/deployment/log on Unix/Linux
    * <user plugin home>\Sun\Java\Deployment\log on Windows

If the property javaplugin.outputfiles.path is set to <directory name> then the trace and log files will be written to <directory name>.

If both USER_JPI_PROFILE and javaplugin.outputfiles.path are set then the value of javaplugin.outputfiles.path takes precedence, and the trace and log files will be written to <directory name>.

malloc will be first against the wall when the revolution comes...
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #4 - Posted 2005-08-08 15:56:14 »

Unfortunately, in Java 5, *this doesn't work like it used to*.

Be warned: the full system.out and .err logging you came to know and love has been removed by Sun for Java 5, so you can't just debug webstart apps like you used to be able to. Go figure.

(tested with 1.5.0_04 - it will log anything in applets, but nothing in webstart; could be a regression bug)

malloc will be first against the wall when the revolution comes...
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

pw (26 views)
2014-07-24 01:59:36

Riven (25 views)
2014-07-23 21:16:32

Riven (20 views)
2014-07-23 21:07:15

Riven (22 views)
2014-07-23 20:56:16

ctomni231 (51 views)
2014-07-18 06:55:21

Zero Volt (46 views)
2014-07-17 23:47:54

danieldean (37 views)
2014-07-17 23:41:23

MustardPeter (40 views)
2014-07-16 23:30:00

Cero (56 views)
2014-07-16 00:42:17

Riven (55 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!