仿真平台内核初版 -tlib库 包含<sparc arm riscv powerPC>
This commit is contained in:
44
lib/Packet.Net/Test/LoggingConfiguration.cs
Normal file
44
lib/Packet.Net/Test/LoggingConfiguration.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
This file is part of PacketDotNet
|
||||
|
||||
PacketDotNet is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
PacketDotNet is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with PacketDotNet. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
* Copyright 2010 Chris Morgan <chmorgan@gmail.com>
|
||||
*/
|
||||
|
||||
using System;
|
||||
using log4net;
|
||||
using log4net.Repository.Hierarchy;
|
||||
|
||||
namespace Test
|
||||
{
|
||||
public class LoggingConfiguration
|
||||
{
|
||||
public static log4net.Core.Level GlobalLoggingLevel
|
||||
{
|
||||
get
|
||||
{
|
||||
Logger rootLogger = ((Hierarchy)LogManager.GetRepository()).Root;
|
||||
return rootLogger.Level;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
Logger rootLogger = ((Hierarchy)LogManager.GetRepository()).Root;
|
||||
rootLogger.Level = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user