package
1.5.14
Repository: https://github.com/saucelabs/sypl.git
Documentation: pkg.go.dev

# Functions

ChangeFirstCharCase changes message content's first char to the specified case.
ColorizeBasedOnLevel colorize messages based on the specified levels.
ColorizeBasedOnWord colorize a messages with the specified colors if a message contains a specific word.
Decolourizer removes any colour.
ErrorSimulator simulates an error in the pipeline.
ForceBasedOnLevel force messages to be printed based on the specified levels.
MuteBasedOnLevel mute messages based on the specified levels.
New is the Processor factory.
NewProcessingError returns a new `ProcessingError`.
PrefixBasedOnMask prefixes messages with the predefined mask.
PrefixBasedOnMaskExceptForLevels is a specialized version of the `PrefixBasedOnMask`.
Prefixer prefixes a message with the specified `prefix`.
PrintOnlyAtLevel prints only if message is at the specified level.
PrintOnlyIfTagged prints only if message contains the specified tag.
Suffixer suffixes a message with the specified `suffix`.

# Constants

Lowercase casing.
Uppercase casing.

# Structs

ProcessingError is thrown when a processor fails.

# Interfaces

IProcessor specifies what a processor does.

# Type aliases

Casing definition, e.g.: Upper, Lower, Title, etc.
RunFunc specifies the function used to process a message.