Mostrar mensagens com a etiqueta Log4J. Mostrar todas as mensagens
Mostrar mensagens com a etiqueta Log4J. Mostrar todas as mensagens

31 julho 2014

Web Article - Logback Configuration Example

package com.javacodegeeks.examples.logbackexample.beans;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class MarcoPoloBean {
 private static final Logger logger = LoggerFactory.getLogger(MarcoPoloBean.class);
 
 public void sayMarco() {
  String msg = "I'm Marco";
  
  logger.info("Hello there. I am {}", msg);
  
  logger.debug("Debugging message");
 }
}

17 novembro 2013

Web Tutorials

Web Tutorials

JAVA
Simple Java Database Swing Application
How to Send Email from Java Program with Example
Java ResourceBundle Example

Creating Maven Projects
Hibernate 3 with Maven 2 and MySQL 5 Example (XML Mapping and Annotation)
How to create a EJB 3.x project using Maven in Eclipse – Part 1
Setup of Dynamic Web Project using Maven
Create Web Application Project with Maven Example

JMS
Spring JMS Example

Java EE7 and Maven
Java EE7 and Maven project for newbies - part1 part2 part3 part4 part5 part6 part7 part8
Spring JPA Data + Hibernate + MySQL + MAVEN
Spring MVC Hello World Example
Spring MVC File Upload Example
Spring MVC beginner tutorial with Spring Tool Suite IDE
Upload Files to Database with Spring MVC and Hibernate

Logging 
Logback
Logback Configuration Example

WELD - Java Contexts and Dependency Injection for the Java EE platform (CDI)
DI (Dependency Injection) / CDI – Basics
Writing JSR-352 style jobs with Spring Batch Part 2: Dependency injection

Spring Data MongoDB
Spring Data MongoDB with Java config

JPA
JPA Tutorial: Setting Up JPA in a Java SE Environment
JPA Tutorial: Mapping Entities – Part 1 - Part 2 - Part 3

Hibernate
Hibernate annotations example
Hibernate tutorial with Eclipse

Persistence
The DAO with JPA and Spring
How to maintain history of tables in Hibernate

Android Tutorials
Android Development Tutorial

28 março 2012

Log4J

Enquanto se programa muitos erros vão surgindo, e não há nada como usar uma API como o Log4J para nos ajudar a decifrar a origem de de um determinado problema.

Para completar este video, deixo o seguinte artigo
Usando Log4J em projetos Java