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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T06:28:19+00:00 2026-06-16T06:28:19+00:00

I have issue with log4net in EPiServer. It is logging EPiServer stuff, NHibernate stuff,

  • 0

I have issue with log4net in EPiServer. It is logging EPiServer stuff, NHibernate stuff, but not my custom logs. Tried to explicitly configure logger to log everything in my namespace:

<logger name="My.Website.Business">
    <level value="All" />
</logger>

I am defining logger in my custom class like this:

ILog log = LogManager.GetLogger(typeof(MyClass));

And call it like this:

log.Error("Some error");

I also enabled log4net logging itself to see what happens on startup, but there are no errors or strange behaviour. It even creates logger defined in config. I also tried to define other appender for my logger, but it just creates empty file and doesn’t log anything.

  • 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-16T06:28:21+00:00Added an answer on June 16, 2026 at 6:28 am

    The reason why log4net didn’t work was different versions of log4net. My application referenced log4net 1.2.11 (2.0.0), but EPiServer work with 1.2.10.
    We are using NuGet to install/update packages and someone updated log4net to newer version.
    So be aware to use same log4net version for EPiServer and application.

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

Sidebar

Related Questions

I'm logging all SQL generated by nHibernate because we have a weird issue. This
I have an issue with log4net which has been bugging me for a while
I have an issue which I could not find answer for across the web.
Good morning everybody, I have a log4net issue that didn't exist when I was
I have issue with table Reality which is not found, when I type db
I have issue with displaying AlertDialog from Service. I am able to display custom
I have a strange situation: I have configured custom log4net Appender to write to
i have issue on box-shadow is not follow the div. i set the z-index
I have issue with: <form:checkboxes path=roles cssClass=checkbox items=${roleSelections} /> If previous line is used
I have issue that is reproduced on g++. VC++ doesn't meet any problems. So

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.