Issue Details (XML | Word | Printable)

Key: LOG4NET-52
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Nicko Cadell
Reporter: Nicko Cadell
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Log4net

Allow XML configurator to set properties of type Object

Created: 31/Oct/05 10:04 AM   Updated: 31/Oct/05 10:08 AM
Return to search
Component/s: Core
Affects Version/s: None
Fix Version/s: 1.2.10

Time Tracking:
Not Specified

Resolution Date: 31/Oct/05 10:08 AM


 Description  « Hide
Currently the XML config parse cannot set string values on properties of type object.
It is possible to force the parser to do this by explicitly setting the type on the element, e.g. <foo type="System.String" value="test" />.
It would be more natural if this explicit type was not required.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #329689 Mon Oct 31 01:07:59 UTC 2005 nicko LOG4NET-52 Allow XML configurator to set properties of type Object.
Fixed check for Level type that was too wide; it matched Object when it should not have. Level is a sealed type so an equals check on the type is all that is required.
Fixed conversion of String to Object. There is an implicit conversion because it is a supertype, but the code in OptionConverter did not account for this.
Files Changed
MODIFY /logging/log4net/trunk/src/Repository/Hierarchy/XmlHierarchyConfigurator.cs
MODIFY /logging/log4net/trunk/src/Util/OptionConverter.cs