Questions tagged [jboss-logging]

JBoss Logging is a logging facade library which includes support for internationalized logging by way of an annotated interface mechanism. These interfaces are designed to be used as input into build tools which generate classes that implement them, using various string translations.

87 questions
0
votes
1 answer

put String.format into logger?

I want to share a "string-message" to a logger and to business code, so I created the message with a String.format and put this into the logger and my business code: var msg = Messages.dateNotValid(user,…
nimo23
  • 5,170
  • 10
  • 46
  • 75
0
votes
1 answer

JBoss Async Logger issue

Version : jboss-eap-7.2.4 here's standalone.xml configuration part for logging, basically there's two size rotating file handler as the subhandler of the async handler.
Peter Yang
  • 11
  • 3
0
votes
1 answer

Jboss logging to slf4j/log4j2 with Keycloak

I have a Keycloak EAR module, deployed on Keycloak 11.0. In my EAR module I want to use log4j2 logging library with slf4j. I successfully accomplished this by adding the following dependencies in the pom directly: log4j-slf4j-impl, log4j-api &…
jernejl
  • 105
  • 3
  • 9
0
votes
2 answers

How to log runtime errors on a file with wildfly

I have several web app modules with same groupId deployed on wildfly 18, let's say org.foo.ecommerce These modules are configured with its own subgroup , therefore: module1 - org.foo.ecommerce.mod1 module2 - org.foo.ecommerce.mod2 module3 -…
Fabrizio Stellato
  • 1,727
  • 21
  • 52
0
votes
1 answer

How to set logging at runtime in org.jboss.logging

I am working with embedded undertow and using org.jboss.logging.Logger for logging. I cannot use log4j or slf4j since the application which is gonna use my jar might not be using different version of log4j and there might be some conflicts. And also…
VIkrant Saini
  • 21
  • 1
  • 1
  • 7
0
votes
2 answers

Log all debug messages to file | JBoss 7

I'd like to log every single debug messages into some file by adding some logger in standalone.xml. The app is runnning on jboss 7 . How can I do so ? P.S. : I already have a root logger to output INFO level things to console.I tried to add a second…
loser8
  • 362
  • 3
  • 14
0
votes
1 answer

Jboss logger clear MDC during thread lifecycle

I need to improve logging in a JavaEE application running on wildfly using jboss logger & logstash, I'm using MDC to store userID but as I'm new with thread usage I'm not figuring out how to clear the MDC before a thread is recycled I have found…
Aliiiiiiii
  • 15
  • 1
  • 9
0
votes
1 answer

Custom formatter for jboss.logmanager and logstash

I'm a beginner with wildfly logging and I'm trying to add more information in the log generated by Jboss, like the Hostname (instead of the ip adress) I'm using Wildfly 10 with the jboss-logmanager-ext who sent logs to logstash 6.7.1 each one in a…
Aliiiiiiii
  • 15
  • 1
  • 9
0
votes
0 answers

Hibernate Configuration initialization : java.lang.ClassCastException: class org.hibernate.internal.CoreMessageLogger_$logger

I am trying to write data in a MariaDB database. I have a ClassCastException calling new Configuration().configure(). It seems to be related to jboss logging utility. Did you already run into this case? I use hibernate-core 5.3.7.Final, here…
Rifu
  • 93
  • 1
  • 2
  • 9
0
votes
1 answer

AMQ org.jboss.logmanager.handlers.SizeRotatingFileHandler not creating a log file

AMQ 7 running on Linux Current default…
B Randall
  • 132
  • 4
  • 15
0
votes
0 answers

Jboss logging error while deploying springboot application in jboss server

22:40:03,522 ERROR [org.springframework.boot.SpringApplication] (ServerService Thread Pool -- 2265) Application startup failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in…
Rajeshwar
  • 391
  • 1
  • 5
  • 19
0
votes
1 answer

java.lang.NoSuchMethodError: org.jboss.logging.Logger.getMessageLogger in Tomcat(Ubuntu 16.04)

I 'm getting this exception when I am trying to deploy the .war file in Tomcat java.lang.NoSuchMethodError: org.jboss.logging.Logger.getMessageLogger(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object; at…
Rodrigo
  • 37
  • 5
0
votes
0 answers

JBoss Logging in IntelliJ via Maven prints to System.error

I have a project in IntelliJ where I have imported JBoss Logging via a Maven library. Maven:org.jboss.logging:jboss-logging:3.3.1.Final I have created a logger for my class. private final Logger LOG = Logger.getLogger(MyClass.class.getName()); And…
Skillzore
  • 748
  • 7
  • 21
0
votes
1 answer

WAR deployment works fine, testing anything with Hibernate gives NoSuchMethodError

I'm getting the following error whenever I try to run some of my test cases: This only happens when I'm running my tests, if I deploy and run the .war, everything runs fine. I've checked my project and the jboss folder and only one version of…
anTrodaire
  • 93
  • 9