×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




I've tried it with and without specifying the Log.properties file.
Neither way works.  (I also noted I can't use JAVAC on this machine
either. . .)  Maybe I just need to remove all the JAVA and reapply.

This is my Log.properties file:

# Specify the handlers to create in the root logger
# (all loggers are children of the root logger)
# The following creates two handlers
handlers = java.util.logging.ConsoleHandler,
java.util.logging.FileHandler
    
# Set the default logging level for the root logger
.level = ALL
    
# Set the default values for new ConsoleHandler instances
java.util.logging.ConsoleHandler.level = INFO
java.util.logging.ConsoleHandler.formatter =
java.util.logging.SimpleFormatter
    
# Set the default values for new FileHandler instances
java.util.logging.FileHandler.level             = ALL
java.util.logging.FileHandler.pattern       = /LogTest/Log-%g.log
java.util.logging.FileHandler.limit         = 100000
java.util.logging.FileHandler.formatter     =
java.util.logging.SimpleFormatter
java.util.logging.FileHandler.append        = false
    

> date: Fri, 05 Aug 2005 08:40:11 -0500
> from: David Gibbs <david@xxxxxxxxxxxx>
> subject: Re: java.util.logging.* - Security issue?
> 
> What's in your Log.properties file?
> 
> I just ran your code on our V5R1 system and it worked fine.
> 
> java -Djava.version=1.4 LogTest
> Entered Program
> Got Logger
> Starting to log messages
> Aug 5, 2005 8:37:11 AM LogTest
> SEVERE: my severe message
> Aug 5, 2005 8:37:13 AM LogTest
> WARNING: my warning message
> Aug 5, 2005 8:37:13 AM LogTest
> INFO: my info message
> 
> david
> 
> Chris Wolcott wrote:
> > I have the following test program I pulled from
> > http://javaalmanac.com/egs/java.util.logging/BasicLogging.html
> >
> > It works fine on the PC, put when I run it on the iSeries (V5R1, JVM
> > 1.4.2) I get " Java program completed with exit code 1".  If I run
it in
> > QSH it goes for a bit then returns, but displays nothing. If I run
it
> > with -verbose, I get pages of classes loading, the last being
security,
> > but still no program output.  My session JOBLOGs don't have anything
in
> > them.
> >
> > Do I have to do something with a SecurityManager?
> >
> > Any ideas?

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.