Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8322617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T23:26:56+00:00 2026-06-08T23:26:56+00:00

Am using Log4Net to log my application,everything works fine to me, just wanna understand

  • 0

Am using Log4Net to log my application,everything works fine to me, just wanna understand little bit more about the log details.

Here is my log:

2012-05-22 17:11:44,602 **[11]** ERROR Shell Exists - ignoreThe remote server returned an erro:
2012-05-29 15:48:11,876 **[32]** ERROR Shell Exists - ignoreThe remote server returned an error: (550) File unavailable (e.g., file not found, no access).

Here is my config:

<appender name="ErrorAppender" type="log4net.Appender.RollingFileAppender,log4net">
  <appendToFile value="true" />
  <maxSizeRollBackups value="30" />
  <maximumFileSize value="5MB" />
  <rollingStyle value="Size" />
  <staticLogFileName value="false" />
  <lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
  <file value="c:\Error.log"/>
  <param name="AppendToFile" value="true"/>
  <filter type="log4net.Filter.LevelRangeFilter">
    <param name="LevelMin" value="ERROR"/>
    <param name="LevelMax" value="ERROR"/>
  </filter>
  <layout type="log4net.Layout.PatternLayout">
    <param name="ConversionPattern" value="%d [%t] %-2p %c %method - %m%n"/>
  </layout>

Just want to know what is [11] or [32] in my log file after time stamp, what it refers here ? hope some one will update my knowledge.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T23:26:59+00:00Added an answer on June 8, 2026 at 11:26 pm

    That will totally depend on what pattern you provided.

    But the default pattern has a [%thread], and that refers to the thread id.

    This is what the pattern in many examples looks like:

    <layout type="log4net.Layout.PatternLayout">
       <conversionPattern value="%date [%thread] %-5level %logger - %message%newline" />
    </layout>
    

    That [%t] is the thread id, alright.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are using Log4Net from our ASP.NET MVC3 application, all works fine but we
i want log linenumber to my log file, using log4net.the config details of log4net
I am using log4net for logging my asp.net application. However the log file is
I am using Log4Net to log exceptions in my web application. Here I have
My application writes a log file (currently using log4net ). I'd like to setup
i want to log an asp.net , framework 4.0 web application. i'm using log4net
I'm facing a problem when trying to log my application using log4net. My application
I'm currently using log4net in my ASP.NET MVC application to log exceptions. The way
I have just begun working on a C# application (using log4net). I'm supposed to
Currently my application is using log4net to log errors, the web.config for this is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.