Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Logger

class Logger providers api to print logs to console immediately after you call function 'flush'.

Hierarchy

  • Logger

Index

Methods

Methods

flush

  • flush(): void
  • flush the logs to console, the message will output to the console only after calling this method, or the message concat together.

    Returns void

i

  • i(intger: i64, fmt?: u32): Logger
  • print an integer to console.

    Parameters

    • intger: i64

      integer to print.

    • Default value fmt: u32 = 10

      to print as dec or hex. for example, 'Log.i(10, 10).flush() ' will print '10', but 'Log.i(10, 16).flush()' will print 'A'.

    Returns Logger

s

  • print a string message to console.

    Parameters

    • msg: string

      message to print.

    Returns Logger

Generated using TypeDoc