Перейти к основному содержанию

Logger

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

Index

Functions

Flush

  • Flush(): void
  • Writes logger content to file and clears all buffers.


    Returns void

Log

  • Log(message: string, prefix?: string): void
  • Writes message to the log, using specified log prefix.

    More about capabilities

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


    Parameters

    • message: string

      message to be logged

    • optionalprefix: string

      prefix of the message, can be used to filter log

    Returns void

LogError

  • Logs java Throwable with full stack trace to.


    Parameters

    Returns void

debug

  • debug(tag: string, message: string): void
  • since: 2.2.0b77

    Writes debugging message to log, using specified tag.

    More about capabilities

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


    Parameters

    • tag: string
    • message: string

    Returns void

error

  • error(tag: string, message: string, error?: Throwable): void
  • since: 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.

    More about capabilities

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


    Parameters

    • tag: string
    • message: string
    • optionalerror: Throwable

    Returns void

info

  • info(tag: string, message: string): void
  • since: 2.2.0b77

    Writes information message to log, using specified tag.

    More about capabilities

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


    Parameters

    • tag: string
    • message: string

    Returns void

Page Options