Questions tagged [java.util.logging]

Java package which provides the classes and interfaces of the Java 2 platform's core logging facilities.

The Java Logging APIs, introduced in package java.util.logging, facilitate software servicing and maintenance at customer sites by producing log reports suitable for analysis by end users, system administrators, field service engineers, and software development teams.

The Logging APIs capture information such as security failures, configuration errors, performance bottlenecks, and/or bugs in the application or platform.

The core package in Java includes support for delivering plain text or XML-formatted log records to memory, output streams, consoles, files, and sockets. In addition, the logging APIs are capable of interacting with logging services that already exist on the host operating system.

Related Tags

651 questions
-1
votes
2 answers

How to create separate logs in Log4j

I am very new to log4j and have implemented it in my code. I am not able to create separate logs for each test case I run. This is my XML file
Anuj Mittal
  • 73
  • 1
  • 8
-1
votes
1 answer

java.util.logging doesn't apply formatter

I have a problem with java.util.logging. I'm telling you. I have my program in a jar file and when I run it, logging works as I hope. In this case I load the logging configuration in the main method. But, if I run from a different jar logging…
Fran1234
  • 1
  • 1
-1
votes
1 answer

Java logging: how to handle overwriting of files on infinite loops

New attempt, same question: I am just looking for a way to keep java.util.logging-logs to NOT loop at the end of the amount of file-sizes and file-number assigned to them! Additional Information: In my case, this happens because the software, due…
Layna
  • 457
  • 5
  • 19
-1
votes
1 answer

java.util.logging doesn't working properly "bug or feature"

Why logging "1 MAIN INFO" doesn't working when I disabled all logging from core libraries by .level=OFF. But for my package I am enabled all logging. Why it works only after I have second logger is instantiated by string? LibClass libClass = new…
user6539479
  • 11
  • 1
  • 1
-1
votes
2 answers

Access Util.logger from multiple classes

I'm new to util.logging so this might seem a trivial question to some but anyway here goes..I'm using Java's Util.logger to log messages. I'm trying to declare a logger in a single class and accessing it from other classes for logging…
Lucy
  • 1,812
  • 15
  • 55
  • 93
-1
votes
1 answer

Production Logging

What type of logging should be used in production environment? As we know that there are many types (level) of logging can be done on any application. if we use 1 or 2 levels of log in production then it will become huge data within seconds. Could…
1 2 3
43
44