2.web.config に下記の設定を書き込んで
3.VB.NETに下記を記入します
Partial Class _Default Inherits System.Web.UI.Page
Private Shared ReadOnly Log As log4net.ILog = _ log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType)
Protected Sub Button1_Click1(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
With Log .Debug("Button1_Click Debug") .Error("Button1_Click Error") .Fatal("Button1_Click Fatal") .Info("Button1_Click Info") End With
0 件のコメント:
コメントを投稿