I have a log formatting component (ILogEntryFormatter) that I resolve from windsor via xml configuration . It has a enum flags based property called FormattingOptions of the following type:
[Flags]
public enum LogEntryFormatterOptions : int
{
None = 0,
DateTime = 1,
LogLevel = 2,
StackTrace = 4,
MachineName = 8,
BaseDirectory = 16,
AppDomainName = 32,
ProcessName = 64,
ProcessIdentity = 128,
ProcessId = 256,
ManagedThreadIdentity = 512,
ManagedThreadId = 1024,
Win32ThreadId = 2048,
ManagedThreadName = 4096,
// Reserved = 8192,
// Reserved = 16384,
// Reserved = 32768,
// Reserved = 65536,
All = Int32.MaxValue
}
Can this parameter value be set via castle XML configuration? Can you OR / combine the values together in castle XML configuration?