Ice 3.7 Slice API Reference
Loading...
Searching...
No Matches
Logger.ice
Go to the documentation of this file.
1//
2// Copyright (c) ZeroC, Inc. All rights reserved.
3//
4
5#pragma once
6
7[["cpp:dll-export:ICE_API"]]
8[["cpp:doxygen:include:Ice/Ice.h"]]
9[["cpp:header-ext:h"]]
10
11[["ice-prefix"]]
12
13[["js:module:ice"]]
14[["js:cjs-module"]]
15
16[["objc:dll-export:ICE_API"]]
17[["objc:header-dir:objc"]]
18
19[["python:pkgdir:Ice"]]
20
21#ifndef __SLICE2JAVA_COMPAT__
22[["java:package:com.zeroc"]]
23#endif
24
25["objc:prefix:ICE"]
26module Ice
27{
28
35local interface Logger
36{
44 ["swift:noexcept"] void print(string message);
45
55 ["swift:noexcept"] void trace(string category, string message);
56
66 ["swift:noexcept"] void warning(string message);
67
77 ["swift:noexcept"] void error(string message);
78
86 ["swift:noexcept"] string getPrefix();
87
96 ["swift:noexcept", "swift:nonnull"] Logger cloneWithPrefix(string prefix);
97}
98
99}
The Ice message logger.
Definition Logger.ice:36
void error(string message)
Log an error message.
string getPrefix()
Returns this logger's prefix.
void print(string message)
Print a message.
void trace(string category, string message)
Log a trace message.
Logger cloneWithPrefix(string prefix)
Returns a clone of the logger with a new prefix.
void warning(string message)
Log a warning message.
The Ice core library.
Definition BuiltinSequences.ice:27