<CORE:Log>

Description

In BBj 16.0 and higher, the Log tag can be used in a BBJSPPage to write text to log file associated with the current BBjJettyContext.

Attributes

Attribute Name

Description

Required

Expression

Data Type

message

the message attribute defined the text to be written to the log file.

true

true

String

option

the option attribute specifies the pre-defined logging option.

true

true

int

Remarks

The example below writes to the log file.

Example

<!DOCTYPE html/>

<%-- WE MUST IMPORT THE TAG LIBRARY BEFORE WE CAN USE IT --%>
<%@ taglib uri='/WEB-CFG/tld/core.tld' prefix='c' %>

<html>
<head>
<title>&lt;c:log></title>
</head>
<body>
<c:set var='str' value='Here we are' />
<c:log message='Here we are' />
We wrote "${str}" to the log file
</body>
</html>

See Also

BBJSP

Core Tag Library