C# 클래스 Senparc.Weixin.WeixinTrace

微信日志跟踪
파일 보기 프로젝트 열기: JeffreySu/WeiXinMPSDK 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
OnLogFunc System.Action
OnWeixinExceptionFunc Action

Private Properties

프로퍼티 타입 설명
Close void
Flush void
Indent void
LogBegin void
LogEnd void
Open void
TimeLog void
Unindent void

공개 메소드들

메소드 설명
ErrorJsonResultExceptionLog ( ErrorJsonResultException ex ) : void

ErrorJsonResultException 日志

Log ( string messageFormat ) : void

记录日志

SendApiLog ( string url, string returnText ) : void

API请求日志

SendCustomLog ( string typeName, string content ) : void

自定义日志

WeixinExceptionLog ( WeixinException ex ) : void

WeixinException 日志

비공개 메소드들

메소드 설명
Close ( ) : void

关闭日志记录

Flush ( ) : void

写入缓存到系统Trace

Indent ( ) : void

缩进一次

LogBegin ( string title = null ) : void

开始记录日志

LogEnd ( ) : void

结束日志记录

Open ( ) : void

打开日志开始记录

TimeLog ( ) : void

统一时间格式

Unindent ( ) : void

退回一次缩进

메소드 상세

ErrorJsonResultExceptionLog() 공개 정적인 메소드

ErrorJsonResultException 日志
public static ErrorJsonResultExceptionLog ( ErrorJsonResultException ex ) : void
ex Senparc.Weixin.Exceptions.ErrorJsonResultException
리턴 void

Log() 공개 정적인 메소드

记录日志
public static Log ( string messageFormat ) : void
messageFormat string 日志内容格式
리턴 void

SendApiLog() 공개 정적인 메소드

API请求日志
public static SendApiLog ( string url, string returnText ) : void
url string
returnText string
리턴 void

SendCustomLog() 공개 정적인 메소드

自定义日志
public static SendCustomLog ( string typeName, string content ) : void
typeName string 日志类型
content string 日志内容
리턴 void

WeixinExceptionLog() 공개 정적인 메소드

WeixinException 日志
public static WeixinExceptionLog ( WeixinException ex ) : void
ex Senparc.Weixin.Exceptions.WeixinException
리턴 void

프로퍼티 상세

OnLogFunc 공개적으로 정적으로 프로퍼티

执行所有日志记录操作时执行的任务(发生在Senparc.Weixin记录日志之后)
public static Action,System OnLogFunc
리턴 System.Action

OnWeixinExceptionFunc 공개적으로 정적으로 프로퍼티

记录WeixinException日志时需要执行的任务
public static Action OnWeixinExceptionFunc
리턴 Action