DEBUG Method

Logs a DEBUG message if the specified logger accepts DEBUG messages.
Applies to: logger object

Syntax

object.DEBUG ("message");

Required Arguments

object
specifies the name of the logger object.
message
specifies the message to write at the debug level.
Requirement The message must be enclosed in quotation marks.

Details

The debug level designates fine-grained informational events that are most useful to debug an application. For more information about logging levels, see Logging Thresholds.

Example

The following example creates a debugging message for the logger.
data _null_;
   if _n_=1 then do;
      declare appender appobj("myappender","FileRefAppender","fileref=myfile");
      declare logger logobj("testlog",AppenderRef:"myappender");
   end;
   ...more-sas-code...

   logobj.debug("Test debug message");

   ...more-sas-code...
run;