Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ A lightweight library containing shared and generic utility classes for Java-bas
## 1) What is this repository for?

### 1.1) Quick summary
Version: `1.0.5`
Version: `1.0.6`

**White_Utils** is a public Java library that provides standardized and generic utility classes to simplify common operations such as logging, formatting, and general helper functions across Java and Maven projects.
It is published for public consumption and is also used as a standard within White Organization.
Expand All @@ -25,7 +25,7 @@ WhiteUtils is designed to be as generic and dependency-minimal as possible so it
<dependency>
<groupId>mx.whiteweb.sdev</groupId>
<artifactId>white-utils</artifactId>
<version>1.0.5</version>
<version>1.0.6</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<!-- region project data -->
<groupId>mx.whiteweb.sdev</groupId>
<artifactId>white-utils</artifactId>
<version>1.0.5</version>
<version>1.0.6</version>
<name>${project.groupId}:${project.artifactId}</name>
<description>A lightweight library containing shared and generic utility classes for Java-based projects.</description>
<url>https://github.com/WhiteOrganization/white-utils</url>
Expand Down
27 changes: 27 additions & 0 deletions src/main/java/org/white_sdev/utils/logging/WhiteLoggeable.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
package org.white_sdev.utils.logging;

/**
* <p>
* Usage Sample:
* </p>
*
* <pre>{@code
* @Slf4j
* public class MyService implements WhiteLoggeable {
* @Override
* public org.slf4j.Logger getLogger() { return log; }
*
* public void myProcess(String name, int age) {
* // Method chaining is supported - all logging methods return LogContext
* var log = withSignature("myProcess(name, age)")
* .start("Processing user {} with age {}", name, age);
*
* log.debug("User age is {}", age);
* if (age < 18) {
* log.warn("User {} is a minor", name);
* }
*
* log.info("User processed successfully")
* .end("age is now {}", age);
* }
* }
* }</pre>
*/
@SuppressWarnings("unused")
public interface WhiteLoggeable {

Expand Down