Skip to Content

Function setLevel

  • Set the level every SDK logger writes at.

    Process-wide. This is what a client's logLevel argument goes through, and it raises rather than warns: an argument is the caller's own code, unlike an ambient MEMCO_LOG.

    Parameters

    • level: string

      One of critical, error, warning, info, debug, or none to silence the SDK. Case and surrounding whitespace are ignored.

    Returns void

    MemcoConfigError If the level is not one of those names.