Basic Logger 1.0-SNAPSHOT
Basic logger written in Java
Loading...
Searching...
No Matches
ge.edu.sangu.logger.Formatter Class Reference

Public Member Functions

 Formatter (String format)
String format (String name, Level level, String message)

Static Public Attributes

static final Formatter DEFAULT = new Formatter("[$date][$threadName][$loggingLevel][$name]: $m$n")

Detailed Description

Formatter is a utility class for constructing formatted log messages. This class allows users to specify a format string that defines the structure and content of log messages.

It provides functionality to replace placeholders in the format string with actual values during message formatting.

Member Function Documentation

◆ format()

String ge.edu.sangu.logger.Formatter.format ( String name,
Level level,
String message )

Formats and return a log message

Parameters
namelogger name
levellogging level
messagelog message
Returns
formatted log message

The documentation for this class was generated from the following file:
  • src/main/java/ge/edu/sangu/logger/Formatter.java