Tagged Questions
0
votes
1answer
10 views
gwt-log Configurations
I just read the gwt-log Getting Started guide and found it very helpful, however I have a few questions surrounding the Loggers:
The SystemLogger sends output to System.err and System.out - in the ...
0
votes
0answers
25 views
JBoss 7.1: Remote Naming Exception While Logging Over JMS
I have an application that logs to a JMS topic on a JBoss 7.1 server on a different machine (application code -> slf4j -> JDK logging -> JMS topic). The logging works with JBoss 6, but not JBoss 7.1. ...
4
votes
0answers
68 views
Logging messages from C++ to Java
I have a library in C++ which is being used by a Java app through JNI. In the Java app I'm using logback to produce logs.
Now I need to log the C++ library messages as well and I have to do it in the ...
0
votes
2answers
40 views
Using different Log files for every thread created
I am working on logging with log4j, i have sample code which creats certain number of threads , i want to use different log files for each threads.
so I have use the PropertyConfigurator.configure() ...
0
votes
0answers
22 views
Real-world slf4j-simple example
I need to get slf4j-simple working and the only documentation for it is here; however it just explains that you can optionally set env vars for configuration. However there is no "real-world" ...
0
votes
0answers
21 views
Static Variables inside EAR module and Jars within that EAR
we have static variables in one of the java files of EAR module and we are initializing those variables via init() method. We have another jar which contains some other helper classes and methods ...
1
vote
4answers
36 views
print data in hashmap in a tabular format in log file
Hi here i want to print the data of hashmap in the tabular format.Below is my code to insert the data in hashmap.
String foldername = item.getParent().substring(item.getParent().lastIndexOf("/") + ...
1
vote
2answers
36 views
Access logger in different class
I have created a logger in my main class as:
public static Logger logger = Logger.getLogger( MainClass.class.getName());
I declared it public static.
this is log4j.properties:
Root logger option
...
0
votes
0answers
15 views
Android java.util.logging Level.CONFIG or lower not getting through
I'm trying to use java.util.logging on android, but has come across the issue that Level.CONFIG or lower doesn't get through to LogCat.
Logger rootLog = LogManager.getLogManager().getLogger("");
...
1
vote
1answer
23 views
Is it possible to change the logging.properties file without stopping Tomcat
I'd like to change the $CATALINA/conf/logging.properties file without stopping Tomcat 7 or any web application.
The need is for exemple to change the level of detection, or to add a Handler on a ...
1
vote
1answer
56 views
How to write specific log to txt file
I have an app that write some logs like
Log.d("Device Name", android.os.Build.MODEL);
How can I write them into the .txt - file on SD card?
If i trying to run simple app, its not save any files
...
1
vote
1answer
106 views
Reading Huge Data With Java [closed]
Firstly, I'm sorry about my English.
I looking for an effective a way to read a Big file in java. I make a log analysis program and I have log files at least from 500 MB to 4 GB. I have tried the ...
0
votes
0answers
35 views
How to log into separate files per thread using EclipseLink
Scenario: Multi-threaded application that interacts with a relational database using EclipseLink JPA Implementation
Desired: Having each thread to log SQL activity to a different file
The ...
3
votes
0answers
24 views
Grouping Appenders At Logback?
I have two appenders. One of them is DB appender and the other one is SMTPAppender. When I log a string with a special marker I want to use both my custom db appender and SMTPAppender. However I don't ...
0
votes
2answers
22 views
Maven Log viewer / Analyzer?
I googled for it. I do not see anything. I just want to view the maven log in a better way. Preferably a standalone tool not as an eclipse plug-in.
Anyone any idea?
0
votes
0answers
8 views
tnameserv failing to start on new build of Java 7
I built the Java 7 sdk from source and now am trying to run the JCK tests on the new java install. When I try to start the tnameserv service it is failing with the following error:
Exception in ...
0
votes
1answer
23 views
Get the complete latest log
In my desktop application, I have a button called Report Issue. Clicking which, my application collects all the important information, puts it in a folder and then zips it. This zip file can be mailed ...
0
votes
0answers
24 views
How to convert Logj4 logging level to JUL logging level?
I'm trying to convert Log4j Level to JUL Level, and would like to use some out-of-the-box utility class. I've found UtilLoggingLevel, but can't figure out how to use it for this particular case. Any ...
0
votes
1answer
19 views
Call procedures of a declared object from a class that is in no way connected
I've been attempting to write a server program for a game and one issue that I am experiencing is writing to my 'log' (which is just a JTextArea's caption) from another class/thread. Basically, the ...
0
votes
0answers
52 views
Log REST request/response via Spring Interceptor
My application is a middle layer(java) with REST service end point(XML). I want to log the request and response of REST. How can i use with an interceptor.
I use Spring framework, but doesnt have MVC, ...
0
votes
1answer
33 views
XMLFormatter dont write xml to file in java
im devaloping a java app that needs to log to an xml file
but after i log to the file it is not in xml format
please help me!!!
my code:
in main-
Logger logger = ...
0
votes
1answer
30 views
How to show the result of debug logger on eclipse
How to make eclipse show the result of log? I am followed this answer and I am stuck with showing log.
0
votes
1answer
60 views
Java Logger is not logging to output in Netbeans
I'm starting a Java project using Maven in Netbeans. I wrote some code to do logging with the Logger class. However, the logging doesn't seem to work. At the beginning of my program, I run:
...
0
votes
1answer
28 views
How to conveniently store common logs and client specific logs
I have a huge code base which serves info requests about colleges. There is a base framework code, and we have some separate packages for college1, college2, etc.,
Whenever there is a request for ...
1
vote
1answer
42 views
Problems with using Log4j 2 in GAE
I just migrated all the java.util.logging codes to log4j in my GAE/J app however I am getting this error:
[INFO] Caused by: java.lang.NoClassDefFoundError: java.lang.management.ManagementFactory is a ...
1
vote
2answers
35 views
Two separate Log4j log files possible? [duplicate]
I run two web services on the same machine.
Is it possible to have 2 separate Log4j log files, one for each web service?
0
votes
3answers
72 views
Logging with a Java library
I'm making a Maven-based java library which the logging used is this:
import java.util.logging.Logger;
private static final Logger LOG
= ...
0
votes
1answer
47 views
The same logger in Android and in regular Java
I have common module which I'm developing in regular Java (PC) but also use in Android. How to log a message in that module which message also loggs in Android?
1
vote
2answers
40 views
Hibernate uses apache commons logging and slf4j - why are 2 logging abstraction layers needed?
I am not so experienced in the java logging libraries world.
I started using hibernate and then saw I needed to include apache commons logging library and sl4j library.
The actual logging library is ...
0
votes
1answer
34 views
how to write everything from jtextarea to file in real time. it is something like log all info displayed into log filefile
I have no code yet I just looking for possible solutions. I will have jtextarea to output information with textarea.append and at the same time I will need to write the same string to the some kind of ...