File: XMLLogger.xsl

Recommend this page to a friend!
  Classes of Stefan Kientzler  >  XLogger PHP PSR Logger  >  XMLLogger.xsl  >  Download  
File: XMLLogger.xsl
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: XLogger PHP PSR Logger
Log events to browser console, text and XML files
Author: By
Last change:
Date: 4 days ago
Size: 1,317 bytes
 

Contents

Download
<?xml version="1.0" encoding="UTF-8"?>
<html xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<head>
<style>
.EMERGENCY
{
	color: white;
	background-color: darkred;
	font-weight: bold;
}
.ALERT
{
	color: white;
	background-color: firebrick;
	font-weight: bold;
}
.CRITICAL
{
	color: white;
	background-color: red;
}
.ERROR
{
	color: black;
	background-color: salmon;
}
.WARNING
{
	color: black;
	background-color: gold;
}
.NOTICE
{
	color: black;
	background-color: white;
}
.INFO
{
	color: darkblue;
	background-color: aliceblue;
}
.DEBUG
{
	color: darkblue;
	background-color: lightblue;
	font-style: italic;
}
.caller
{
	font-size: 8pt;
	font-weight: normal;
}
.ua
{
	font-style: italic;
	font-size: 7pt;
	font-weight: normal;
}
</style>
</head>
<body style="font-family:Arial;font-size:8pt;background-color:#EEEEEE">
<table width="100%"><tbody>
<xsl:for-each select="log/item">
    <tr class="{level}">
		<td><xsl:value-of select="timestamp"/></td>
		<td><xsl:value-of select="user"/></td>
		<td class="caller"><xsl:value-of select="caller"/></td>
		<td class="ua"><xsl:value-of select="useragent"/></td>
	</tr>
    <tr class="{level}">
		<td><xsl:value-of select="level"/></td>
		<td colspan="3"><xsl:value-of select="message"/></td>
    </tr>
</xsl:for-each>
</tbody></table>
</body>
</html> 

For more information send a message to info at phpclasses dot org.