Tagged Questions
4
votes
1answer
48 views
MDC(Mapped Diagnostic Context) support for JUL(Java.util.Logging)
I have a logging mechanism setup with Slf4j and java.util.Logging. I have several threads so I'm unable to get a clear idea from logs since they are mixed. Now I try to use MDC concept to add some ...
1
vote
1answer
30 views
create a directory with filehandler
I used java.util.logging to create two logfiles.
Here's how it looks like.
Handler fh = new FileHandler("%h/AntonGUI_Tester/Logfiles/"+logTime+".html");
fh.setFormatter(new HTMLTableFormatter()); ...
1
vote
1answer
49 views
Java separate logger configuration for each ID
I am looking forward to actually configure a logger that should be created for different IDs.
My application is very huge and there are nearly 20 users accessing the application at a time so when ...
1
vote
1answer
34 views
when is the format method called?
In the following code, the class MyCustomeFormatter extends Formatter. It also overrides the format message. When is this method called ? For example :
logger.log(Level.INFO,"This is an info ...
1
vote
1answer
227 views
java.util.logging.FileHandler and multithreading
The FileHandler class from java.util.logging implements some sort of locking mechanism for the file it is writing to. However i found that there a .lck files lying around in the filesystem after an ...
1
vote
1answer
163 views
Jetty with a custom JUL logger
I feel this should be easier, or I am missing something obvious.
I am trying to use our custom JUL logging library with Jetty. No matter where I put the JAR file for the custom logger, it is not ...
1
vote
1answer
610 views
how to configure my own formatter in java logging property file
For my java project, i am using the java logging api. I want to log everything using a property file.
Before using this file (log.properties), I configured my onwn formatter in the java code. (see ...
0
votes
0answers
28 views
java.util.logging won't use custom formatter
I have created my own formatter, extending java.util.logging.Formatter.
My logging.properties looks like:
handlers=java.util.logging.ConsoleHandler
java.util.logging.ConsoleHandler.level=ALL
...
0
votes
0answers
45 views
How to use logging.properties for different clases?
I have a properties file logger how to do so that I can use it for different classes, but they had a different name?
In my case, for different classes will logger with the same name.
Here is my file ...
0
votes
0answers
29 views
what it mean in logging.properties at vert.x?
it is default logging.properties.
handlers=java.util.logging.ConsoleHandler,java.util.logging.FileHandler
java.util.logging.SimpleFormatter.format=%5$s %6$s\n
...
0
votes
0answers
34 views
Configuring different JDK log formatting for different log files
Using java.util.logging, is it possible to set up different formatting for different log files? For one file, I want to use the default SimpleFormatter output. The other file contains logging from a ...
0
votes
0answers
52 views
jdk7 RessourceBundle / logging issue
I noticed that the localized message of a Level class from java.util.logging does not work on Java7. Looks like there is an issue with loading RessourceBundle for sun.util.logging.resources.logging
...
0
votes
0answers
87 views
FileHandler.level not overriding the global level
I'm using jdk logging and i've the below in the logging.properties:
handlers= java.util.logging.FileHandler
.level= INFO
java.util.logging.FileHandler.level = FINEST
...
0
votes
0answers
91 views
Java app printing logging related error messages to stdout
When I run my java application, it prints to standard output the following two lines:
Bad level value for property: .level
Bad level value for property: java.util.logging.ConsoleHandler.level
This ...
0
votes
0answers
134 views
Run eclipse with logging.properties file
I have a logging.properties file which describes the level of logging I need for the android application. I want to load the application in eclipse with this file. I am not sure how to do this. I have ...