Click here to Skip to main content
15,913,709 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionEditing while debugging Pin
Anurag Gandhi12-May-10 23:44
professionalAnurag Gandhi12-May-10 23:44 
AnswerRe: Editing while debugging Pin
Michel Godfroid13-May-10 0:33
Michel Godfroid13-May-10 0:33 
AnswerRe: Editing while debugging Pin
Venkatesh Mookkan13-May-10 1:09
Venkatesh Mookkan13-May-10 1:09 
GeneralRe: Editing while debugging Pin
Anurag Gandhi13-May-10 2:17
professionalAnurag Gandhi13-May-10 2:17 
Questioncustomizing ajax editor control Pin
jitendrafaye12-May-10 22:37
jitendrafaye12-May-10 22:37 
QuestionHelp required Pin
MaheshSharma12-May-10 21:39
MaheshSharma12-May-10 21:39 
AnswerRe: Help required Pin
Amit Patel198512-May-10 22:52
Amit Patel198512-May-10 22:52 
AnswerRe: Help required Pin
Pranay Rana13-May-10 0:01
professionalPranay Rana13-May-10 0:01 
<log4net>
  <appender name="RollingLogFileAppenderDBConn" type="log4net.Appender.RollingFileAppender">
   <file value="D:\\LogsIGT11\\AppDBlog.txt"/>
   <appendToFile value="true"/>
   <maxSizeRollBackups value="4"/>
   <maximumFileSize value="50MB"/>
   <rollingStyle value="Size"/>
   <staticLogFileName value="true"/>
   <layout type="log4net.Layout.PatternLayout">
    <conversionPattern value="%date [%thread] %-5level %logger [%ndc] - %message%newline"/>
   </layout>
  </appender>


  <appender name="RollingLogFileAppenderLicChk" type="log4net.Appender.FileAppender">
   <file value="D:\\LogsIGT11\\AppLic.txt"/>
   <!--log-data\rolling-log.txt-->
   <appendToFile value="true"/>
   <maxSizeRollBackups value="4"/>
   <maximumFileSize value="50MB"/>
   <rollingStyle value="Size"/>
   <staticLogFileName value="true"/>
   <layout type="log4net.Layout.PatternLayout">
    <conversionPattern value="%date [%thread] %-5level %logger [%ndc] - %message%newline"/>
   </layout>
  </appender>



  <logger name="ErrorLog">
   <level value="DEBUG"/>
   <maximumFileSize value="50MB"/>
   <param name="Threshold" value="OFF"/>
   <appender-ref ref="RollingLogFileAppenderError"/>
  </logger>

  <logger name="LicChkLog">
   <level value="INFO"/>
   <maximumFileSize value="50MB"/>
   <param name="Threshold" value="OFF"/>
   <appender-ref ref="RollingLogFileAppenderLicChk"/>
  </logger>
 </log4net>




code for accessing

public void logMessage(System.Exception th)
        {
            log4net.ILog logger = log4net.LogManager.GetLogger("ErrorLog");
            logger.Error(System.DateTime.Now.ToString("dd-MM-yyyyHH:mm:ss"));
            logger.Error(th.StackTrace);
            logger.Error(th.Message);

            log.Error(System.DateTime.Now.ToString("ddMMyyHHmmss"));
            log.Error(th.StackTrace);
            log.Error(th.Message);
        }





 private void WriteLogInfo(string status)
    {

        log4net.ILog logger = log4net.LogManager.GetLogger("LicChkLog");
        logger.Error("********************START****************************");
        logger.Error(System.DateTime.Now.ToString("dd-MM-yyyy HH:mm:ss"));
        logger.Error(status);
        logger.Error("********************END******************************");


    }

For more help : pranayamr.blogspot.com

QuestionHow to check if an email address exists without sending an email? Pin
ansriharsha12-May-10 21:02
ansriharsha12-May-10 21:02 
AnswerRe: How to check if an email address exists without sending an email? Pin
Michel Godfroid12-May-10 21:23
Michel Godfroid12-May-10 21:23 
AnswerRe: How to check if an email address exists without sending an email? Pin
JHizzle12-May-10 22:45
JHizzle12-May-10 22:45 
GeneralRe: How to check if an email address exists without sending an email? Pin
ansriharsha12-May-10 23:44
ansriharsha12-May-10 23:44 
GeneralRe: How to check if an email address exists without sending an email? Pin
JHizzle13-May-10 0:48
JHizzle13-May-10 0:48 
GeneralRe: How to check if an email address exists without sending an email? Pin
The Man from U.N.C.L.E.13-May-10 3:44
The Man from U.N.C.L.E.13-May-10 3:44 
GeneralRe: How to check if an email address exists without sending an email? Pin
JHizzle13-May-10 3:49
JHizzle13-May-10 3:49 
AnswerRe: How to check if an email address exists without sending an email? Pin
suwangsoft14-May-10 1:36
suwangsoft14-May-10 1:36 
QuestionEnterprise Library logger Pin
A M SOMAN12-May-10 20:52
A M SOMAN12-May-10 20:52 
AnswerRe: error with Enterprise Library logger Pin
Ankur\m/12-May-10 21:01
professionalAnkur\m/12-May-10 21:01 
AnswerRe: Enterprise Library logger Pin
A M SOMAN13-May-10 1:55
A M SOMAN13-May-10 1:55 
QuestionInvalid attempt to call Read when reader is closed Pin
indian2212-May-10 19:48
indian2212-May-10 19:48 
AnswerRe: Invalid attempt to call Read when reader is closed Pin
Arun Jacob12-May-10 20:35
Arun Jacob12-May-10 20:35 
Questionhow to fetch the url of image and store in database Pin
developerit12-May-10 18:55
developerit12-May-10 18:55 
AnswerRe: how to fetch the url of image and store in database Pin
saini arun12-May-10 21:38
saini arun12-May-10 21:38 
GeneralRe: how to fetch the url of image and store in database Pin
developerit12-May-10 22:15
developerit12-May-10 22:15 
GeneralRe: how to fetch the url of image and store in database Pin
saini arun12-May-10 22:34
saini arun12-May-10 22:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.