資源簡介
Log4Net封裝成庫,可直接引入使用。包含封裝好的類和Demo源碼。

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
using?System.Threading.Tasks;
namespace?log4net.Logging
{
????public?interface?ILogger
????{
????????///?
????????///???Log?debug?message
????????///?
????????///??The?debug?message?
????????///??the?message?argument?values?
????????void?Debug(string?message?params?object[]?args);
????????///?
????????///???Log?debug?message
????????///?
????????///??The?message?
????????///??Exception?to?write?in?debug?message?
????????///?
????????void?Debug(string?message?Exception?exception?params?object[]?args);
????????///?
????????///???Log?debug?message
????????///?
????????///??The?item?with?information?to?write?in?debug?
????????void?Debug(object?item);
????????///?
????????///???Log?FATAL?error
????????///?
????????///??The?message?of?fatal?error?
????????///??The?argument?values?of?message?
????????void?Fatal(string?message?params?object[]?args);
????????///?
????????///???log?FATAL?error
????????///?
????????///??The?message?of?fatal?error?
????????///??The?exception?to?write?in?this?fatal?message?
????????void?Fatal(string?message?Exception?exception?params?object[]?args);
????????///?
????????///???Log?message?information
????????///?
????????///??The?information?message?to?write?
????????///??The?arguments?values?
????????void?Info(string?message?params?object[]?args);
????????///?
????????///???Log?warning?message
????????///?
????????///??The?warning?message?to?write?
????????///??The?argument?values?
????????void?Warning(string?message?params?object[]?args);
????????///?
????????///???Log?error?message
????????///?
????????///??The?error?message?to?write?
????????///??The?arguments?values?
????????void?Error(string?message?params?object[]?args);
????????///?
????????///???Log?error?message
????????///?
????????///??The?error?message?to?write?
????????///??The?exception?associated?with?this?error?
????????///??The?arguments?values?
????????void?Error(string?message?Exception?exception?params?object[]?args);
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????3773??2018-04-27?13:38??Log4Test\Log4NetService\bin\Debug\log4net.config
?????文件?????275968??2017-03-08?19:25??Log4Test\Log4NetService\bin\Debug\log4net.dll
?????文件???????7168??2018-04-27?13:39??Log4Test\Log4NetService\bin\Debug\Log4NetService.dll
?????文件??????19968??2018-04-27?13:39??Log4Test\Log4NetService\bin\Debug\Log4NetService.pdb
?????文件???????2857??2018-04-27?13:28??Log4Test\Log4NetService\ILogger.cs
?????文件????????402??2018-04-27?13:28??Log4Test\Log4NetService\ILoggerFactory.cs
?????文件???????3773??2018-04-27?13:38??Log4Test\Log4NetService\log4net.config
?????文件???????3035??2018-04-27?13:38??Log4Test\Log4NetService\Log4NetService.csproj
?????文件????????899??2018-04-27?13:39??Log4Test\Log4NetService\Logger4Factory.cs
?????文件???????4500??2018-04-27?13:28??Log4Test\Log4NetService\Logger4Helper.cs
?????文件???????1581??2018-04-27?13:28??Log4Test\Log4NetService\LoggerFactory.cs
?????文件???????6769??2018-04-27?13:36??Log4Test\Log4NetService\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件????????336??2018-04-27?13:38??Log4Test\Log4NetService\obj\Debug\Log4NetService.csproj.FileListAbsolute.txt
?????文件???????7168??2018-04-27?13:39??Log4Test\Log4NetService\obj\Debug\Log4NetService.dll
?????文件??????19968??2018-04-27?13:39??Log4Test\Log4NetService\obj\Debug\Log4NetService.pdb
?????文件??????????0??2018-04-27?13:31??Log4Test\Log4NetService\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
?????文件??????????0??2018-04-27?13:31??Log4Test\Log4NetService\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
?????文件??????????0??2018-04-27?13:31??Log4Test\Log4NetService\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
?????文件???????1348??2018-04-27?13:31??Log4Test\Log4NetService\Properties\AssemblyInfo.cs
?????文件????????189??2018-04-27?13:31??Log4Test\Log4Test\App.config
?????文件???????3773??2018-04-27?13:38??Log4Test\Log4Test\bin\Debug\log4net.config
?????文件?????275968??2017-03-08?19:25??Log4Test\Log4Test\bin\Debug\log4net.dll
?????文件???????7168??2018-04-27?13:39??Log4Test\Log4Test\bin\Debug\Log4NetService.dll
?????文件??????19968??2018-04-27?13:39??Log4Test\Log4Test\bin\Debug\Log4NetService.pdb
?????文件???????8192??2018-04-27?13:39??Log4Test\Log4Test\bin\Debug\Log4Test.exe
?????文件????????189??2018-04-27?13:31??Log4Test\Log4Test\bin\Debug\Log4Test.exe.config
?????文件??????22016??2018-04-27?13:39??Log4Test\Log4Test\bin\Debug\Log4Test.pdb
?????文件??????22984??2018-04-27?13:39??Log4Test\Log4Test\bin\Debug\Log4Test.vshost.exe
?????文件????????189??2018-04-27?13:31??Log4Test\Log4Test\bin\Debug\Log4Test.vshost.exe.config
?????文件????????490??2010-03-17?22:39??Log4Test\Log4Test\bin\Debug\Log4Test.vshost.exe.manifest
............此處省略50個文件信息
評論
共有 條評論