Bugs: Browse | Submit New | Admin

[#25169] Add support for logging message on console

Date:
2009-04-04 15:34
Priority:
3
Submitted By:
Vivek Pandey (vivekp)
Assigned To:
Vivek Pandey (vivekp)
Category:
CLI
State:
Closed
Target Release:
 
Summary:
Add support for logging message on console

Detailed description
GlassFish gem versions before 0.9.3 logged all the messages on console. With version 0.9.3 we started always logging
it in files. This became in-convenient for many as logging on console can be helpful during development/testing.

Also see Issue: 

http://rubyforge.org/tracker/index.php?func=detail&aid=24633&group_id=5450&atid=21080

what would be more appropriate is that anyone running 

'glassfish -l' will get to see messages on console. Here -l takes file argument. In this case no filename would mean
console.

The fix will go in next gem release.

In the meanwhile, here is how you can log to console

* Run 'glassfish' once
* edit tmp/.glassfish/config/logging.properties file

First set handler to ConsoleHandler

    handlers=java.util.logging.ConsoleHandler

then comment ConsoleHandler.level 
    
    #java.util.logging.ConsoleHandler.level=SEVERE

Now run glassfish and all the messages will be logged to console. To get back old behavior add the followin back:

    java.util.logging.ConsoleHandler.level=SEVERE

Add A Comment: Notepad

Please login


Followup

Message
Date: 2009-05-13 01:29
Sender: Vivek Pandey

Fixed, will be released in the next gem release.

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
status_idOpen2009-05-13 01:29vivekp
resolution_idNone2009-05-13 01:29vivekp
close_date2009-05-13 01:292009-05-13 01:29vivekp