Loxer - v3.0.0
    Preparing search index...

    Interface LoxerConfig

    Configuration for the LoxerOptions

    interface LoxerConfig {
        moduleTextSlice?: number;
        disabledInProductionMode?: boolean;
        disabled?: boolean;
        historyCacheSize?: number;
    }
    Index
    moduleTextSlice?: number

    the length where the modules' names will be sliced in order to fit the layout.

    • defaults to 8
    disabledInProductionMode?: boolean

    disables Loxer in production mode.

    • if Loxer is initialized with options.config.disabledInProductionMode: true then - in production environment - the cache is erased and upcoming logs will not be cached anymore
    • in fact all logging function then immediately return "nothing" for performance reasons
    • defaults to false
    disabled?: boolean

    disables Loxer completely.

    • this MUST be used in order to suppress logging without deleting the Loxer calls!
    • without disabling AND init() of Loxer, all the logs will be cached "infinitely", because they "wait" for the init().
    • if Loxer is initialized with options.config.disabled: true then the cache is erased and upcoming logs will not be cached anymore
    • in fact all logging function then immediately return "nothing" for performance reasons
    • defaults to false
    historyCacheSize?: number

    determines how many output- / error logs shall be cached in the history.

    • is accessible with Loxer.history
    • will be additionally appended to error outputs
    • defaults to 50