return new ModelMBeanInfoSupport(
Logger.class.getName(), name,
new ModelMBeanAttributeInfo[]
{
new ModelMBeanAttributeInfo(
"Name", String.class.getName(), "",
READABLE, !WRITABLE, !ISIS,
new DescriptorSupport(
new String[]
{
"descriptorType=attribute",
"name=Name",
"getMethod=getName"
}
)
),
new ModelMBeanAttributeInfo(
"Level", int.class.getName(), "",
READABLE, WRITABLE, !ISIS,
new DescriptorSupport(
new String[]
{
"descriptorType=attribute",
"name=Level",
"getMethod=getLevel",
"setMethod=setLevel"
}
)
),
new ModelMBeanAttributeInfo(
"UnderlyingLogger", Object.class.getName(), "",
READABLE, !WRITABLE, !ISIS,
new DescriptorSupport(
new String[]
{
"descriptorType=attribute",
"name=UnderLyingLogger",
"getMethod=getUnderlyingLogger"
}
)
),
new ModelMBeanAttributeInfo(
"DebugEnabled", boolean.class.getName(), "",
READABLE, !WRITABLE, ISIS,
new DescriptorSupport(
new String[]
{
"descriptorType=attribute",
"name=DebugEnabled",
"getMethod=isDebugEnabled"
}
)
),
new ModelMBeanAttributeInfo(
"ErrorEnabled", boolean.class.getName(), "",
READABLE, !WRITABLE, ISIS,
new DescriptorSupport(
new String[]
{
"descriptorType=attribute",
"name=ErrorEnabled",
"getMethod=isErrorEnabled"
}
)
),
new ModelMBeanAttributeInfo(
"FatalEnabled", boolean.class.getName(), "",
READABLE, !WRITABLE, ISIS,
new DescriptorSupport(
new String[]
{
"descriptorType=attribute",
"name=FatalEnabled",
"getMethod=isFatalEnabled"
}
)
),
new ModelMBeanAttributeInfo(
"InfoEnabled", boolean.class.getName(), "",
READABLE, !WRITABLE, ISIS,
new DescriptorSupport(
new String[]
{
"descriptorType=attribute",
"name=InfoEnabled",
"getMethod=isInfoEnabled"
}
)
),
new ModelMBeanAttributeInfo(
"TraceEnabled", boolean.class.getName(), "",
READABLE, !WRITABLE, ISIS,
new DescriptorSupport(
new String[]
{
"descriptorType=attribute",
"name=TraceEnabled",
"getMethod=isTraceEnabled"
}
)
),
new ModelMBeanAttributeInfo(
"WarnEnabled", boolean.class.getName(), "",
READABLE, !WRITABLE, ISIS,
new DescriptorSupport(
new String[]
{
"descriptorType=attribute",
"name=WarnEnabled",
"getMethod=isWarnEnabled"
}
)
),
new ModelMBeanAttributeInfo(
"LoggerAdapter", LoggerAdapter.class.getName(), "",
READABLE, WRITABLE, !ISIS,
new DescriptorSupport(
new String[]
{