Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.46 KB

README.md

File metadata and controls

39 lines (30 loc) · 1.46 KB

simple-message

A library to simple-message custom, fatal error, error, information, success and warning.

Build Status Coverage Status Coverage Status

Install

Available in the Maven Central repository.

Add a dependency to com.github.thiagogarbazza:simple-message in your project.

Example using maven:

<dependency>
  <groupId>com.github.thiagogarbazza</groupId>
  <artifactId>simple-message</artifactId>
  <version>1.0.0</version>
</dependency>

Usage samples

Simple usage:

public SimpleMessage example() {
  return new SimpleMessage(SimpleMessageType.INFORMATION, "key.a", "Message to key a");
}

Simple usage using java.text.MessageFormat:

public SimpleMessage exampleUsingMessageFormat() {
  return new SimpleMessage(SimpleMessageType.INFORMATION, "key.a", "Message to key {0} by {1}", "a", "Thiago");
}