- More docs
This commit is contained in:
Tristan B. Velloza Kildaire 2024-04-09 17:30:56 +02:00
parent 646be85ee7
commit bfff52be39
1 changed files with 26 additions and 4 deletions

View File

@ -124,17 +124,35 @@ private class GoggaMessage : BasicMessage
private class GoggaTransform : Transform
{
/**
* Mode to use for stylization
*/
private GoggaMode mode;
this()
{
// this.mode = mode;
}
/**
* Sets the stylization to
* use when transforming
* the message's text
*
* Params:
* mode = the `GoggaMode`
*/
public void setMode(GoggaMode mode)
{
this.mode = mode;
}
/**
* Transforms the incoming message
* to use the Gogga stylization. This
* will be a no-op if the incoming
* message is not a `GoggaMessage`.
*
* Params:
* message = the message to transform
* Returns: the transformed message,
* else the same exact one
*/
public Message transform(Message message)
{
// Only handle GoggaMessage(s)
@ -255,6 +273,10 @@ public final class GoggaLogger : BasicLogger
/* Set the level */
message.setLevel(level);
// TODO: Add a feature (compile time check)
// that if segments is first string then everything else
// iets anders, then apply formatting
/**
* Grab all compile-time arguments and make them
* into an array, then join them together and