Previous Page | Next Page

Logger and Appender Object Language Reference

WARN Method



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

Syntax
Arguments
Details
Example
See Also

Syntax

object.WARN ("message");


Arguments

object

specifies the name of the logger object.

message

specifies the message to write at the warn level.

Requirement: The message must be enclosed in double quotation marks.

Details

The warn level designates potentially harmful situations. For more information about logging levels, see Logging Thresholds.


Example

The following example creates a warn message for a logger.

data _null_;
   if _n_ = 1 then do;
      declare logger logobj("testlog");
   end;
   logobj.warn("Test warn message");
run;


See Also

Method:

DEBUG Method

ERROR Method

FATAL Method

INFO Method

TRACE Method

Previous Page | Next Page | Top of Page