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 6042097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:45:09+00:00 2026-05-23T06:45:09+00:00

i am unable to write log any info, error, debug using log4net, i tried

  • 0

i am unable to write log any info, error, debug using log4net, i tried everything gave permsission to network service, everyone to directories asp.net temp folder, log folder, even c:\,

it just create a empty file. but do not write log

what could be the issue

Thx
Raj

  • 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-05-23T06:45:09+00:00Added an answer on May 23, 2026 at 6:45 am

    My guess would be that in your config file, you didn’t specify a layout pattern. Normally, you have something that looks like this inside your appender:

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

    That specifies what to write to the log. If you don’t have that, I doubt it will write anything.

    I agree with those in the comments who said this probably isn’t a permissions issue because the file gets created. To test that this is true, you could add an appender to your config that outputs to the console. Then you could watch the output as you debug your application. If that doesn’t work either, you know the issue isn’t a permissions issue.

    The best suggestion I can give would be to compare your config file with a working one. Make sure that every section has a counterpart in the working config or that you know why it doesn’t need to have one. Here is an article I wrote on log4net that includes explanations on every section of the config and it shows how to write them:

    http://www.codeproject.com/KB/dotnet/Log4net_Tutorial.aspx

    If all of this doesn’t help, please post your config file text in your question so we can look through it.

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

Sidebar

Related Questions

I am using Cakephp, but I am unable to log the info and errors
Error: Unable to read data from the transport connection: A blocking operation was interrupted
well I'm unable to write file if application Run auto at start-up but when
I am having log4net permission issue from ASP.Net 4.0 web application to write to
I would like to write into a log file from the kernel space. I
I'm using rails with authlogic for sign in. I'm trying to write an integration
Situation is that level of log4net is configured as 'Error' but there is some
My php script is unable to write a file despide 777 permission. the file
I am unable to write a stored procedure for bulk insertion into my table.
I'm using Play to write a webapp which is deployed in Tomcat. Because the

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.