JsFW20 에 로그 남기기...
BaseForm 메서드로 존재한다!!
날짜.jog 로 작성됨.
로그 디렉토리 설정
기본값은 C:\Program Files\jsFW20_Dll
LoggingDirectoryPath = @"D:\ttt\";
로그 허용 조건..
JsFW.DEBUG.DebugQueryForm.SetDebugAuthority();
또는
UsedLogging = true;
로그는...
try
{
...
}
catch (BaseException bEx)
{
Alert(bEx);
}
또는
Debug_Logging(new BaseException( 로그 메세지, Exception 예외 ));
이렇게하면 해당 디렉토리에 남는다.
예외를 발생하여 기록한 내용을 보자
<UniException 예외!>
-----[예외정보]-----
사용자:, 발생시각:2010-05-28 09:14:39
예외정보:스칼라 변수 "@@SERVER_NAME"을(를) 선언해야 합니다.
위치: JsFW.ADONET.DataBase_DataAccess.JsFW.ADONET.IDataAccessComponent.ExcuteScalar(String Query, SqlParameter[] parameters)
위치: JsFW.ADONET.DataBase_Business.ExcuteScalar(String Query, SqlParameter[] parameters)
위치: WindowsFormsApplication1.Ver.ServerName() 파일 C:\Users\DokebiJs\Documents\Visual Studio 2008\Projects\NewADONET\WindowsFormsApplication1\Form1.cs:줄 61
위치: WindowsFormsApplication1.Form1..ctor() 파일 C:\Users\DokebiJs\Documents\Visual Studio 2008\Projects\NewADONET\WindowsFormsApplication1\Form1.cs:줄 33
<데이타엑세스 예외!>
-----[Connection정보]-----
서버:___ , 데이타베이스:___ ,상태:Open