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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T22:56:54+00:00 2026-05-28T22:56:54+00:00

I have a stand alone class. I have to provide a logging mechanism for

  • 0

I have a stand alone class. I have to provide a logging mechanism for this file to log all the process taking place including exceptions. Later this would get integrated with a jar or so. What is the best logging mechanism which would be compatible even after integration. Since mine is just a class file which is not included in a jar, is it possible to use log4J? more suggestions welcome.

  • 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-28T22:56:55+00:00Added an answer on May 28, 2026 at 10:56 pm

    You might want to use LogBack as an implementation of the generic slf4j framework. Note that log4j is an implementation of slf4j as well and this mean that if you program to the slf4 interface you can exchange logback and log4j by just replacing one jar with the other. Go with the first baby steps and note the generic imports of this introduction link. With logback you can instruct your app where to locate the configuration file with the following: -Dlogback.configurationFile=path/filename.ext

    The exception that you’re receiving (described in your comment) means that you probably did not configure log4j or that your app couldn’t locate the configuration file.

    Writing your own logger class or using the one provided by the util package is prob ably not a good idea..

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

Sidebar

Related Questions

I have written a stand alone Program to upload file to FTP Server. Code
Question fellow programmers. Let's say I have a stand alone application in it's own
I have created a great stand-alone web form in asp.net utilizing many jQuery features
I have a problem that I feel is best implimented in a stand alone
I am looking for a stand alone class diagram generator that takes the root
I am trying to write a stand alone Class that can be imported. As
I have a stand-alone WinForms application, let's call it Program A. Program A let's
I have a requirement to create a component which can be used stand-alone or
I have a class that is a manager sort of class. One of it's
I'm creating a stand-alone Sava application with Spring, to handle the JDBC access. 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.