EnvironmentAdapter is an interface for adapting the logger to different environments. The format method should return a string with the formatted text and level.
Format the given text with color based on log level.
The text to format.
Optional
The level of the log, which determines the color.
The formatted text with applied color.
EnvironmentAdapter is an interface for adapting the logger to different environments. The format method should return a string with the formatted text and level.