vtl logging

Configure the directory path where log files are to be stored.

The client library writes log messages to SYSLOG on Linux/UNIX systems. However, for Windows, the log messages are written to the file "LunaCryptokiLog.htm" at the location that you specify in <logPath>.

Syntax

vtl logging

configure <log_path>
show

Argument(s) Description
configure <log_path> Specify the directory path where log files are to be stored.
show Displays the current directory path where log files are stored.

To demonstrate that the logging is working on a Windows platform, you could create an error situation as follows:

1. Enable the client side log on a Windows platform.

2.Create a client certificate.

3.Register the client with a SafeNet Luna Network HSM appliance.

4.Manually delete the client certificate file.

5.Run ckdemo or another application against a partition on that SafeNet Luna Network HSM. NTLS is broken for this client (due to the missing certificate), so any commands from your application should fail.

6.Check LunaCryptokiLog.htm and observe error messages written there.

Examples

C:\Program Files\SafeNet\LunaClient>vtl logging configure "C:\Program Files\SafeNet\LunaClient"
Success setting log path to C:\Program Files\SafeNet\LunaClient
C:\Program Files\SafeNet\LunaClient>vtl logging show
Client logging written to: C:\Program Files\SafeNet\LunaClient\LunaCryptokiLog.htm