Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

cozyloon/EzConfigProperties

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Maven Central

You can easily access your Java properties file and Java Loggers now. No need to waste your time for configure it again. Accessing Java properties, and Java loggers is now easy.

How to use EzConfig?

EzConfig is a Java library that provides a simple and convenient way to manage configuration files in a Java application. To use the EzConfig library in your Maven project, you will need to add it as a dependency in your project's pom.xml file. Here's an example of how you can do this:

First, add the following dependency to your pom.xml file:

<dependency>
    <groupId>io.github.cozyloon</groupId>
    <artifactId>ezconfig</artifactId>
    <version>1.0</version>
</dependency>

You can download the latest version here -> EzConfig

Once you have added the repository and dependency to your pom.xml file, you can import the EzConfig library in your Java code using the following import statement: import io.github.cozyloon.EzConfig;

Create config.properties file in this path "/src/main/resources/config.properties". That's it.

Now you can easily access the config file by using EzConfig.getProperty("");

public static final String EXAMPLE = EzConfig.getProperty("");

Now you can easily access the logger by using EzConfig.logInfo(""); EzConfig.logWarning(""); and EzConfig.logError("");

Keywords: Java properties file, Java Loggers, Java logging, Properties file, Logging in Java, Configuring Java loggers, Accessing Java properties, Java configuration files