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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:45:55+00:00 2026-06-15T05:45:55+00:00

I have a Restlet webservice and I want to remove the debug statements in

  • 0

I have a Restlet webservice and I want to remove the debug statements in the log that Restlet creates when a request is made. Currently I am using this code to redirect the Restlet logging to my log file instead of console output by doing this:

Slf4jLoggerFacade loggerFacade = new Slf4jLoggerFacade();
Engine.getInstance().setLoggerFacade(loggerFacade);

In my log4j.properties file I have this:

log4j.rootLogger=WARNING, LOGFILE

My problem is that it still shows the debug entries in the log saying that it received the requests. This causes the log file to be a huge file size because of all the debug statements.

I also tried this to remove the debug statements but it did not work:

Engine.setLogLevel(Level.WARNING);

as well as tried this:

Engine.setRestletLogLevel(Level.WARNING);

Why is my log4j.properties file not working?

Here is some debug entries from the log that I want to remove:

Nov 29 00:00:01 DEBUG org.restlet log Host: ip:8182
Nov 29 00:00:01 DEBUG org.restlet log Connection: keep-alive
Nov 29 00:00:01 DEBUG t.SpringComponent.ServerRouter fine Default virtual host selected
Nov 29 00:00:01 DEBUG t.SpringComponent.ServerRouter fine Base URI: “http://ip:8182”. Remaining part: “/getFoo?foo=Foo%2Ffoo&fileName=foo.bin”

  • 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-15T05:45:56+00:00Added an answer on June 15, 2026 at 5:45 am

    Solved it! It was not a Restlet issue more of a not knowing log4j well enough. I was setting the log4j level to WARNING instead of WARN. Here is my settings in the log4j that solved my problem. 🙂

    log4j.rootLogger=ERROR, LOGFILE
    log4j.logger.org.restlet=WARN
    log4j.logger.org.springframework=WARN
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Restlet Service that looks like this: @POST @Produces(application/json) public String processImmediately(String
Using restlet, I want to make a post to android's c2dm service. I have
In my program, I have a web application that creates a PNG image. This
I have developed WebService using Restlet API in Java for iPhone/iPad devices. Our server
We have developed a RESTful webservice using the restlet framework. The service is called
Using Restlet I have created a router for my Java application. From using curl,
Usage scenario We have implemented a webservice that our web frontend developers use (via
Looking for the guice support in restlet I have come across this article -
i have in my localhost:8111 a restlet app running. This app have a ServerResource
I am using RESTlet and I have created a resource. I handle POST by

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.