Namespace Logger

Module used to log messages to Inner Core and internal log.

Functions

  • Writes debugging message to log, using specified tag.

    Parameters

    • tag: string
    • message: string

    Returns void

    It will be writed to [<tag>/D] <message> as-is.

    2.2.0b77

  • Writes error message to log, using specified tag. If it writed before game startup finish, debugging log with all messages will appear.

    Parameters

    • tag: string
    • message: string
    • Optionalerror: Throwable

    Returns void

    It will be writed to [<tag>/E] <message> as-is. If error also provided, it will be appended with same tag above error message.

    2.2.0b77

  • Writes logger content to file and clears all buffers.

    Returns void

  • Writes information message to log, using specified tag.

    Parameters

    • tag: string
    • message: string

    Returns void

    It will be writed to [<tag>/I] <message> as-is.

    2.2.0b77

  • Writes message to the log, using specified log prefix.

    Parameters

    • message: string

      message to be logged

    • Optionalprefix: string

      prefix of the message, can be used to filter log

    Returns void

    It will be writed to [<prefix>/D] <message> as-is, where prefix will be MOD if it not specified.

  • Logs java Throwable with full stack trace to.

    Parameters

    Returns void

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.