Get the database to which to log requests (to the
xot_request_log table.
The database returned will be based on the following precedence:
- The database specified by the PageActivityDatasource application property, if any,
- The darabase specified by the db parameter (normally omitted), if any,
- The DataDB database.
Note that unless the database is obtained from
PageActivityDatasource it cannot have
NoPlatformOpSchema set.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static IDatabase GetLogDB(
IAppContext cxt,
IDatabase db = null
)
Public Shared Function GetLogDB (
cxt As IAppContext,
Optional db As IDatabase = Nothing
) As IDatabase
Parameters
- cxt
- Type: NetQuarryIAppContext
The application context. - db (Optional)
- Type: NetQuarryIDatabase
The specified database to which to log, normally omitted.
Return Value
Type:
IDatabaseThe best log database available per the log database precedence rules, or null if none is available.
See Also