Package-level declarations

Types

Link copied to clipboard

A colored LoggerPipe implemented in common code (using println) For coloring the output the com.shakelang.util.colorlib is used (So we use ascii formatting commands)

Link copied to clipboard

A LoggerPipe implemented in common code (using println)

Link copied to clipboard

This object contains some common transformer combinations

Link copied to clipboard

This object contains some common transformers

Link copied to clipboard
interface Debug

A debugger function

Link copied to clipboard
class DebuggerDumpConfiguration(val out: Logger, val paths: List<String> = GlobalDebugConfiguration.paths)

A DebuggerDumpConfiguration is a configuration for the debug function It contains the Logger to use and the paths that will be shown in the debug output

Link copied to clipboard

The global debug configuration

Link copied to clipboard

Html console (A HTML console to print messages to)

Link copied to clipboard

Pipe for colored logs into java console (System.out + System.err for errors)

Link copied to clipboard

Pipe for logs into java console (System.out + System.err for errors)

Link copied to clipboard

Pipe for colored logs to the browser console (using css styles)

Link copied to clipboard

Pipe for colored logs to the terminal (using ANSI escape codes)

Link copied to clipboard

Pipe for logs to the terminal / browser console

Link copied to clipboard
class LogEntry(val level: LogLevel, val message: String)

A LogEntry is a data class that represents a log entry

Link copied to clipboard
class Logger(val pipes: MutableList<LoggerPipe> = mutableListOf(), val bufferSize: Int = 8192)

A Logger is used to log messages

Link copied to clipboard
abstract class LoggerPipe

A LoggerPipe is a pipe output for the Logger

Link copied to clipboard
Link copied to clipboard

A LogMessageCreator is a utility to dynamically create a log message when it is needed. This can be used to save performance when the log message is not needed

Link copied to clipboard
typealias LogMessageLambda = () -> String

A lambda to create a log message

Link copied to clipboard
interface LogTransformer

A LogTransformer transforms a log message before it is logged

Link copied to clipboard
class TransformedPipe(val pipe: LoggerPipe, val transformers: List<LogTransformer>) : LoggerPipe

A LoggerPipe that transforms the message before putting it into the next pipe

Properties

Link copied to clipboard

The global logger object of the application

Functions

Link copied to clipboard
fun debug(name: String? = null, logger: Logger = com.shakelang.util.logger.logger): Debug

Create a debug context

Link copied to clipboard
inline fun Console.debug(vararg message: String)

Declaration of the console.debug function of the browser console

Link copied to clipboard
Link copied to clipboard
fun matchesPattern(pattern: String, input: String): Boolean

Check if a path matches a template