SAL has been enhanced to log extensive information on errors on demand. Function calls can be traced with arguments in the debug builds.
You can use the SAL_LogLevels parameter to configure the severity levels for the SAL messages. SAL_LogLevels is a comma separated list of desired log levels.
The log levels are explained in the table below:
Table 14-1 SAL Message Filtering Parameters
A ’-’ at the beginning of a specific log level disables that level.
To filter based on all the log levels, except LogInfo and LogDbg, complete the following steps:
Stop ndsd.
Type the following command:
export SAL_LogLevels=LogAll,-LogInfo,-LogDbg
Start ndsd.
Shutdown the DHost.
Type the following command at command prompt:
set SAL_LogLevels=LogAll,-LogInfo,-LogDbg
c:\novell\nds>dhost.exe /datadir=c:\novell\nds\DIBFiles\
Restart DHost.
You can use the SAL_LogFile environment variable to specify the log file location. This can be a valid file name with a valid path, or one of the following.
Console: All messages will be logged to the console
Syslog: In Linux and UNIX, the messages will go to the syslog. On Windows, messages are logged into a file with the name syslog. This is the default behavior for logging.
All critical errors are always logged to syslog unless it is disabled specifically.