@zeroc/ice
    Preparing search index...

    Interface Logger

    Represents Ice's abstraction for logging and tracing. Applications can provide their own logger by implementing this abstraction and setting a logger on the 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.

    • Logs an error message.

      Parameters

      • message: string

        The error message to log.

      Returns void

      #warning

    • Returns this logger's prefix.

      Returns string

      The prefix.

    • Prints a message. The message is printed literally, without any decorations such as executable name or timestamp.

      Parameters

      • message: string

        The message to log.

      Returns void

    • Logs a trace message.

      Parameters

      • category: string

        The trace category.

      • message: string

        The trace message to log.

      Returns void

    • Logs a warning message.

      Parameters

      • message: string

        The warning message to log.

      Returns void

      #error