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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:15:39+00:00 2026-06-01T06:15:39+00:00

The standard logging code does not seem to work instantiating a logger with the

  • 0

The standard logging code does not seem to work instantiating a logger with the canonical name nor using an anonymous logger.

Code below:

private static final Logger logger = Logger.getLogger(UserAccessFilter.class
  .getCanonicalName());

// ...
public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain)
  throws IOException, ServletException {
  if (!UsersHelper.isValid(req)) {
    logger.log(Level.WARNING, getErrorMessage(req));
    // ... some error serving code
  } else {
    chain.doFilter(req, resp);
  }
}
  • 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-01T06:15:40+00:00Added an answer on June 1, 2026 at 6:15 am

    Yes, you can log from a servlet filter – I’m doing it in my code.

    I bet you are logging at info levels, while App Engine only reports warning and above by default. Look in WEB-INF/logging.properties and add / replace .level = INFO to see INFO messages (or log WARNING+ messages).

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

Sidebar

Related Questions

standard power operation ( ** ) in Python does not work for negative power!
Can anyone provide (or point me to) example sql code for logging exceptions using
I'm using Eclipse 3.7.1 and my code isn't seeing my logging.properties file. (I thought
The system I am working on does not use standard ASP.NET Auth/ Membership facilities
Is it possible to decorate/extend the python standard logging system, so that when a
In C++, there isn't a de-facto standard logging tool. In my experience, shops roll
Can standard pointers in .Net do this? Or does one need to resort to
In standard php or source code based projects we easily keep all of the
I'm trying to configure logging for a Django app using the Python logging module.
I have a really strange problem with the standard logging module used in django

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.