LogHelper Class

紀錄助手

Definition

Namespace: eBizprise.Framework
Assembly: eBizprise.Framework.Log.LogHelper (in eBizprise.Framework.Log.LogHelper.dll) Version: 25.0.5.0+6e92afb880fa099fdfe407c9aa8d1b17eaaf3625
C#
public class LogHelper : ILogHelper
Inheritance
Object    LogHelper
Implements
ILogHelper

Constructors

LogHelper 預設建構函式
LogHelper(ILogger) 指定Logger建構函式
LogHelper(Type) 指定類型建構函式

Properties

IsConfigured 檢查是否已手動配置

Methods

Configure 配置日誌(可選)
Debug Debug等級紀錄
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Error Error等級紀錄
Exception Exception紀錄
Fatal Fatal等級紀錄
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetLogger 取得預設紀錄
GetLogger(String) 建立新紀錄
GetLogger(Type) 建立新紀錄
GetTypeGets the Type of the current instance.
(Inherited from Object)
Info Info等級紀錄
LoadEnvironmentConfiguration 手動載入環境別配置
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
setDebugFileName 設定預設Debug紀錄檔案名稱
setErrorFileName 設定預設Error記錄檔案名稱
setFatalFileName 設定預設Fatal記錄檔案名稱
setInfoFileName 設定預設Info記錄檔案名稱
setTraceFileName 設定預設Trace紀錄檔案名稱
setWarnFileName 設定預設Warn記錄檔案名稱
ToStringReturns a string that represents the current object.
(Inherited from Object)
Trace Trace等級紀錄
Warn Warn等級紀錄

Extension Methods

CloneT 跨型別複製物件
(Defined by CoreExtension)
ToBsonString 轉換Bson字串
(Defined by SerializeExtend)
ToBsonString 轉換Bson字串
(Defined by SerializeExtend)
ToJsonString 轉換Json字串
(Defined by SerializeExtend)
ToJsonString 轉換Json字串
(Defined by SerializeExtend)
ToXmlString 轉換Xml字串
(Defined by SerializeExtend)
WriteJsonFile 寫入Json格式檔案
(Defined by SerializeExtend)

Revision History

DateVersionDescription
2020/02/071.0.0.0初版
2025/09/1925.0.0.0彙整2025年度初版
2025/12/0825.0.3.0支援DI、環境變數、環境別配置檔

See Also