Ice 3.7 Slice API Reference
Operations | List of all members
Ice::Logger Local Interface Reference

The Ice message logger. More...

defined in <Ice/Logger.ice>

local interface Logger { ... }

Operations

Logger cloneWithPrefix (string prefix)
 Returns a clone of the logger with a new prefix. More...
 
void error (string message)
 Log an error message. More...
 
string getPrefix ()
 Returns this logger's prefix. More...
 
void print (string message)
 Print a message. More...
 
void trace (string category, string message)
 Log a trace message. More...
 
void warning (string message)
 Log a warning message. More...
 

Detailed Description

The Ice message logger.

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

Operation Documentation

◆ cloneWithPrefix()

["swift:noexcept","swift:nonnull"]
Logger cloneWithPrefix ( string  prefix)

Returns a clone of the logger with a new prefix.

Parameters
prefixThe new prefix for the logger.
Returns
A logger instance.

◆ error()

["swift:noexcept"]
void error ( string  message)

Log an error message.

Parameters
messageThe error message to log.
See also
warning

◆ getPrefix()

["swift:noexcept"]
string getPrefix ( )

Returns this logger's prefix.

Returns
The prefix.

◆ print()

["swift:noexcept"]
void print ( string  message)

Print a message.

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

Parameters
messageThe message to log.

◆ trace()

["swift:noexcept"]
void trace ( string  category,
string  message 
)

Log a trace message.

Parameters
categoryThe trace category.
messageThe trace message to log.

◆ warning()

["swift:noexcept"]
void warning ( string  message)

Log a warning message.

Parameters
messageThe warning message to log.
See also
error

The documentation for this interface was generated from the following file: