![]() | ![]() | ![]() | ![]() | ![]() |
This sample shows you how to modify SAS Web Report Studio 3.1 logging in order to extract specific data (in this case, {DATE} and {ISO8601}) and make logging information easier to read. Modifications are made in the DefaultLoggerProperties.xml.orig, which is located in the config folder of the SAS Web Report Studio installation directory.
Click the Full Code tab in this sample for details. Click the Output tab in this sample to see results.
DefaultLoggerProperties.xml.orig. (Subsequent installation or upgrade activity can overwrite this file.)<Output> block, modify the layoutPattern attribute. Instructions are contained in the comments located above the <Output> block.Note: If you plan to use SAS® Web Report Viewer to view reports, you can make similar changes to the DefaultWRVLoggerProperties.xml.orig file.
For more information about logging, see "Configuring SAS Web Report Studio," starting on page 107 in the SAS 9.1.3 Intelligence Platform: Web Application Administration Guide at http://support.sas.com/documentation/configuration/biwaag.pdf.
For more information about redeploying, see "Re-Create and Redeploy SAS Web Report Studio," starting on page 114 in the SAS 9.1.3 Intelligence Platform: Web Application Administration Guide at http://support.sas.com/documentation/configuration/biwaag.pdf.
For information about configuring logging for SAS Web Report Studio 4.2, see Administering Logging for SAS Web Applications.
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.
DefaultLoggerProperties.xml.orig.DefaultLoggerProperties.xml.orig, replace the <Output> block with the code below and then save the changes.
<Output id = "WRS"
type = "File"
layoutPattern = " WRS String: ISO8601 %d{ISO8601}, DATE %d{DATE}, ABSOLUTE %d{ABSOLUTE} %-5p [%u] %c{4} - %m%n">
<param name = "File"
value = "$LOG_FILE_PATH$javaconf.writeProperty|file.separator|WebReportStudio.log" />
<param name = "Append"
value = "true" />
</Output>
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.
After the logging modifications, the SAS Web Report Studio log should contain the following information instead of WRS 14:44:23,046 .
WRS String: ISO8601 2008-06-20 14:44:23,046, DATE 20 Jun 2008 14:44:23,046, ABSOLUTE 14:44:23,046
| Type: | Sample |
| Topic: | Query and Reporting |
| Date Modified: | 2008-08-25 14:53:45 |
| Date Created: | 2008-07-04 02:36:03 |
| Product Family | Product | Host | Product Release | SAS Release | ||
| Starting | Ending | Starting | Ending | |||
| SAS System | SAS Web Report Studio | 64-bit Enabled AIX | 3.1 | 9.1 TS1M3 SP4 | ||
| 64-bit Enabled Solaris | 3.1 | 9.1 TS1M3 SP4 | ||||
| HP-UX IPF | 3.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows Server 2003 Enterprise Edition | 3.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows Server 2003 Standard Edition | 3.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft® Windows® for x64 | 3.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows XP Professional | 3.1 | 9.1 TS1M3 SP4 | ||||
| Windows Vista | 3.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows Server 2003 Datacenter Edition | 3.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows NT Workstation | 3.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows 2000 Professional | 3.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows 2000 Server | 3.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows 2000 Advanced Server | 3.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows 2000 Datacenter Server | 3.1 | 9.1 TS1M3 SP4 | ||||
| SAS System | SAS Web Report Viewer | Microsoft® Windows® for x64 | 3.1 | 9.1 TS1M3 SP4 | ||
| Microsoft Windows 2000 Advanced Server | 3.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows 2000 Datacenter Server | 3.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows 2000 Server | 3.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows 2000 Professional | 3.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows NT Workstation | 3.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows Server 2003 Datacenter Edition | 3.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows Server 2003 Enterprise Edition | 3.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows Server 2003 Standard Edition | 3.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows XP Professional | 3.1 | 9.1 TS1M3 SP4 | ||||
| Windows Vista | 3.1 | 9.1 TS1M3 SP4 | ||||
| 64-bit Enabled AIX | 3.1 | 9.1 TS1M3 SP4 | ||||
| 64-bit Enabled Solaris | 3.1 | 9.1 TS1M3 SP4 | ||||
| HP-UX IPF | 3.1 | 9.1 TS1M3 SP4 | ||||





