Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches

◆ openServerLogAsync() [1/2]

std::future< std::optional< FileIteratorPrx > > IceGrid::AdminSessionPrx::openServerLogAsync ( std::string_view id,
std::string_view path,
std::int32_t count,
const Ice::Context & context = Ice::noExplicitContext ) const
nodiscard

Opens a server log file for reading.

Parameters
idThe server ID.
pathThe path of the log file. A log file can be opened only if it's declared in the server or service deployment descriptor.
countSpecifies where to start reading the file. If negative, the file is read from the beginning. Otherwise, the file is read from the last count lines.
contextThe request context.
Returns
A future that becomes available when the invocation completes. This future holds:
  • An iterator to read the file. This proxy is never null.