This class is used to retrieve a log or a Trace.
Symbolic | Code |
---|---|
| -1 |
| 0 |
| 1 |
| 2 |
| 3 |
| 4 |
Symbolic | Table |
---|---|
| -1 |
| 0 |
| 1 |
| 2 |
| 3 |
| 4 |
Symbolic | Code | Description |
---|---|---|
| 0 | Most critical |
| 1 | Critical |
| 2 | Important |
| 3 | Normal |
| 4 | Long information |
| 5 | Trace information |
Symbolic | Code | Description |
---|---|---|
| 1 | Only errors |
| 2 | Above + basic information |
| 3 | Above + trace basic level |
| 4 | Above + trace detail level |
Class
FCREPLLog
Log/trace/exception entity class.
Getters
Log type |
|
Log agent type |
|
Log detail level |
|
Log security level |
|
Inherited getters
Log event time |
|
Log event type |
|
DBEngine identification NoteThis is linked to |
|
Log agent |
|
Log agent name |
|
Log function name |
|
Log detail level |
|
Log severity level |
|
Log error code |
|
Log error message |
|
Setters
Log type |
|
Log agent type |
|
Log detail level |
|
Log severity level |
|
Log agent name |
|
Log function name |
|
Log error message |
|
Inherited setters
Log event time |
|
Log type |
|
Log agent |
|
DBEngine identification NoteThis is linked to the |
|
Log agent name |
|
Log function name |
|
Log detail level |
|
Log severity level |
|
Log error code |
|
Log message |
|
Retrieve the latest Log entity objects.
Prototype
FCREPL_API int fcReplGetLatestLogs(pFCREPLConn replConn, int latestCount, FCREPLDetailLevel maxDetailLevel, FCREPLSeverity maxSevLevel, bool showDBEngine, bool showReplStudio, bool showReplAgent, bool showWebServer, int dbEngineID, const char *funcName, int errorCode, ppFCREPLLog *logList, int *logCount);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| Number of latest log entries to be retrieved |
| Maximum detail level to be retrieved |
| Maximum severity level to be retrieved |
| Show DBEngine messages |
| Show Replication Studio messages |
| Show Replication Agent messages |
| Show web server messages |
| DBEngine identification to have the logs filtered by |
| Partial function name to have the logs filtered by |
| Error code to have the logs filtered by |
| Log list in JSON format |
| Number of items in the |
Return
Error code
Retrieve the log entity objects.
Prototype
FCREPL_API int fcReplGetLogs(pFCREPLConn replConn, FCREPLDateTime startTime, FCREPLDateTime endTime, FCREPLDetailLevel maxDetailLevel, FCREPLSeverity maxSevLevel, bool showDBEngine, bool showReplStudio, bool showReplAgent, bool showWebServer, int dbEngineID, const char *funcName, int errorCode, int logListSize, int logStart, ppFCREPLLog *logList, int *logCount, int *totalLogs);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| Period start time |
| Period end time |
| Maximum detail level to be retrieved |
| Maximum severity level to be retrieved |
| Show DBEngine messages |
| Show Replication Manager messages |
| Show Replication Agent messages |
| Show web server messages |
| DBEngine identification to have the logs filtered by |
| Partial function name to have the logs filtered by |
| Error code to have the logs filtered by |
| Log list count to be retrieved |
| Log list start record |
| Log entity list |
| Number of log entities in the list |
| Total number of log entities |
Return
Error code
Archive the log events that happened before a given number of days.
Prototype
FCREPL_API int fcArchiveLog(pFCREPLConn replConn, int daysToArchive);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| Number of days to keep active |
Return
Error code