Open topic with navigation

TIBCO® Patterns 6.1.2

# Server Logging On

The following function turns on server query logging and/or alters the log format being used.

    dvkerr_t lkt_svrlogon( lpar_t hostc, lpar_t format );

In order for this command to have any effect, the server must have been started with the −l command line option to specify the name of the query log file. For further details, see the TIBCO® Patterns Installation guide.

The format lpar, if not LPAR_NULL, specifies the new log format to use. The format string is copied literally to the log file after the following conversions:

%c | (where c is any character) is substituted as in the ANSI C library function strftime.
$c |
$d | database(s) accessed by command
$g | GIP prefilter state
$i | IP address of connection
$n | number of matching records returned
$P | predicate
$q | query
$s | numeric status code returned by server
$S | string representation of status returned by server
$t | CPU time needed by command
$$ | literal $

The default format is:

$c %d/%b/%Y-%H:%M:%S $i $s $t $d $q $n $p $g\n

## Input

## host (required)

For more information, see Communicating with TIBCO Patterns Servers.

## format (optional)

is the log file format (SVR_LPAR_BLK_LOGFORMAT).

Error codes and items returned by lkt_svrlogon

IPCERR | (none)
IPCTIMEOUT | (none)
IPCEOF | (none)
HANDSHAKE | (none)
LOGFILE | (none)
PARAMVAL | Parameter that should have been a SVR_LPAR_BLK_LOGFORMAT.

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO® Patterns

Copyright © 2010-2025. Cloud Software Group, Inc. All Rights Reserved.