| std::optional< FileIteratorPrx > IceGrid::AdminSessionPrx::openServerLog | ( | std::string_view | id, |
| std::string_view | path, | ||
| std::int32_t | count, | ||
| const Ice::Context & | context = Ice::noExplicitContext ) const |
Opens a server log file for reading.
| id | The server ID. |
| path | The path of the log file. A log file can be opened only if it's declared in the server or service deployment descriptor. |
| count | Specifies 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. |
| context | The request context. |
| IceGrid::DeploymentException | Thrown when the server couldn't be deployed on the node. |
| IceGrid::FileNotAvailableException | Thrown when the file can't be read. |
| IceGrid::NodeUnreachableException | Thrown when the node is unreachable. |
| IceGrid::ServerNotExistException | Thrown when the server doesn't exist. |