enterprise logging using jboss tools

Reading the errors of wildfly – weld, sometimes you can see some NUMBERS to identify the error..

/**
* Log messages for Contexts
* Message Ids: 000200 – 000299
*/

@MessageLogger(projectCode = WELD_PROJECT_CODE)
public interface ContextLogger extends WeldLogger

 

@LogMessage(level = Level.TRACE)
@Message(id = 200, value = “Looked for {0} and got {1} in {2}”, format = Format.MESSAGE_FORMAT)
void contextualInstanceFound(Object param1, Object param2, Object param3);

The theory:
https://developer.jboss.org/wiki/JBossLoggingTooling
the code:
https://github.com/wildfly/quickstart/tree/11.x/logging-tools

Pubblicato da

fiorenzo pizza

Fiorenzo Pizza is Senior Software Engineer at Ict-Group, where he currently works on developing systems for big enteprise customers. He has a background as a researcher at the University of Bologna at the project S.W.I.M.M. "Multimodal Interactive Services for the Web" heavily using java EE technologies. Latest OS projects: - twiliofaces, plivo-java-ee, giavacms Coming soon!

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *