Skip to Content.
Sympa Menu

shibboleth-dev - Re: origin logging config

Subject: Shibboleth Developers

List archive

Re: origin logging config


Chronological Thread 
  • From: Walter Hoehn <>
  • To: Noah Levitt <>
  • Cc: Scott Cantor <>,
  • Subject: Re: origin logging config
  • Date: Thu, 29 Jan 2004 13:25:59 -0500

Seems to me we can have our cake and eat it too. Why not do something like this?

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:simpleType name="LevelType">
<xs:restriction base="xs:string">
<xs:enumeration value="OFF"/>
<xs:enumeration value="FATAL"/>
<xs:enumeration value="ERROR"/>
<xs:enumeration value="WARN"/>
<xs:enumeration value="INFO"/>
<xs:enumeration value="DEBUG"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="Log4JConfigType">
<xs:restriction base="xs:string">
<xs:enumeration value="properties"/>
<xs:enumeration value="xml"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="Logging">
<xs:complexType>
<xs:choice>
<xs:sequence>
<xs:element name="ErrorLog" type="Log"
minOccurs="0"/>
<xs:element name="TransactionLog" type="Log"
minOccurs="0"/>
</xs:sequence>
<xs:element name="Log4JConfig">
<xs:complexType>
<xs:attribute name="type" type="Log4JConfigType" use="optional" default="properties"/>
<xs:attribute name="location"
type="xs:anyURI" use="required"/>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:complexType name="Log">
<xs:attribute name="level" type="LevelType" use="optional" default="WARN"/>
<xs:attribute name="location" type="xs:anyURI"
use="required"/>
</xs:complexType>
</xs:schema>


-Walter



Noah Levitt wrote:
Or I guess having a simple way that I can turn off and just use log4j itself
would be ok.


You'd have to configure your special settings in code, in
LogServ.java I believe, but it would be easy.

Noah

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature




Archive powered by MHonArc 2.6.16.

Top of Page