@saninn/logger
    Preparing search index...

    Interface ILoggerConfig

    Index

    Properties

    globalPreLoggerFunctions?: LoggerTypesObject<PreLoggerFunction>

    This function will be called before the console prints their output when ILoggerConfig.useGlobalPreLoggerFunctions is true

    loggerProcessors?: LoggerTypesObject<LoggerProcessor[]>

    Object containing an array of [LoggerProcessors]LoggerProcessor to be called after console log when ILoggerConfig.useLoggerProcessors is true

    logLevel?: LogLevelsEnum

    Any value from LogLevelsEnum defaults to LogLevelsEnum.DEBUG

    prefix?: string

    The prefix to be appended before the log message

    A valid CSS string color for the prefix (where it is supported). Examples: red | #ffbbss | rgb(255,10,2) | rgba(255,10,2,1)

    showLoggerFunctionNames?: boolean

    Prints the logger name after after the log contents (except for .dir)

    const logger = new SaninnLogger({
    showLoggerFunctionNames: true
    });
    logger.log('test') // --> [LOG]: test

    * const logger = new SaninnLogger({
    prefix: 'my-logger',
    showLoggerFunctionNames: true
    });
    logger.log('test')
    useGlobalPreLoggerFunctions?: boolean

    If active the function declared on globalPreLoggerFunctions will be called before every loggerProcessor and console function. It DOES NOT Prevent the console to print the correct call line

    useLoggerProcessors?: boolean

    If active the array of functions on ILoggerConfig.loggerProcessors will be called before every console function, util if you need to send the logs to third party libs or analytics services. IMPORTANT: when this is enabled the SaninnLogger will lose the console position because there is no way to get the console message without proxy it.