Skip to Content.
Sympa Menu

shibboleth-dev - Re: origin logging config

Subject: Shibboleth Developers

List archive

Re: origin logging config


Chronological Thread 
  • From: Noah Levitt <>
  • To: Walter Hoehn <>
  • Cc: Scott Cantor <>,
  • Subject: Re: origin logging config
  • Date: Thu, 29 Jan 2004 16:47:38 -0500
  • Secret-nsa-message-id: 3b026257dfe9ed894171dbbb76f5b2ba

Walter's schema is like my proposal, but allows use of a
separate log4j.properties as an alternative. I think this is
a reasonable compromise.

Noah

On Thu, Jan 29, 2004 at 13:25:59 -0500, Walter Hoehn wrote:
> 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





Archive powered by MHonArc 2.6.16.

Top of Page