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

  • Home
  • SEARCH
  • 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 3497812
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:24:58+00:00 2026-05-18T12:24:58+00:00

The Hello World example from SLF4J is not working for me. I guess this

  • 0

The “Hello World” example from SLF4J is not working for me. I guess this is because I added slf4j-log4 to my classpath. Should I configure log4j directly for the hello world to work?

log4j:WARN No appenders could be found for logger (HelloWorld).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

Update: I added log4j initialization, and it still doesn’t work:

public static void main(String[] params) {
        org.apache.log4j.Logger.getRootLogger().addAppender(new ConsoleAppender());
        Logger logger = org.slf4j.LoggerFactory.getLogger(TestBase.class);
        logger.info("Hello World");
    }

And I’m getting:

log4j:ERROR No output stream or file set for the appender named [null].
  • 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-18T12:24:59+00:00Added an answer on May 18, 2026 at 12:24 pm

    If you want to use slf4j simple, you need these jar files on your classpath:

    • slf4j-api-1.6.1.jar
    • slf4j-simple-1.6.1.jar

    If you want to use slf4j and log4j, you need these jar files on your classpath:

    • slf4j-api-1.6.1.jar
    • slf4j-log4j12-1.6.1.jar
    • log4j-1.2.16.jar

    No more, no less. Using slf4j simple, you’ll get basic logging to your console at INFO level or higher. Using log4j, you must configure it accordingly.

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

Sidebar

Related Questions

Using Complete C++ i18n gettext() hello world example I changed the locale from es_MX
Getting started with jquery and having trouble getting hello world type example going for
Say for example I have the following string: var testString = Hello, world; And
I have done this: $ z() { echo 'hello world'; } How do I
Am trying out Ruby on Rails in Windows XP using the Hello World example.
I am trying to follow this example (from p137 of Rob Pickering's Foundations of
I'm just trying to compile the hello world example of boost.python WITHOUT using all
I opened up my compiled Hello World Obj-C application in a text editor and,
I'd like to create a basic Hello World style application for the IPhone using
I've written a small hello world test app in Silverlight which i want to

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.