@zeroc/ice
    Preparing search index...

    Interface Logger

    The Ice message logger. Applications can provide their own logger by implementing this interface and installing it in a communicator.

    interface Logger {
        cloneWithPrefix(prefix: string): Logger;
        error(message: string): void;
        getPrefix(): string;
        print(message: string): void;
        trace(category: string, message: string): void;
        warning(message: string): void;
    }
    Index

    Methods

    • Returns a clone of the logger with a new prefix.

      Parameters

      • prefix: string

        The new prefix for the logger.

      Returns Logger

      A logger instance.

    • Log an error message.

      Parameters

      • message: string

        The error message to log.

      Returns void

      #warning

    • Returns this logger's prefix.

      Returns string

      The prefix.

    • Print a message. The message is printed literally, without any decorations such as executable name or time stamp.

      Parameters

      • message: string

        The message to log.

      Returns void

    • Log a trace message.

      Parameters

      • category: string

        The trace category.

      • message: string

        The trace message to log.

      Returns void

    • Log a warning message.

      Parameters

      • message: string

        The warning message to log.

      Returns void

      #error