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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:18:56+00:00 2026-06-18T07:18:56+00:00

I am using JavaFx with native packaging. What is the best way to log

  • 0

I am using JavaFx with native packaging.
What is the best way to log the System console output to file?
Is it possible to use sl4j-simple?
Could you please give example?

  • 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-18T07:18:57+00:00Added an answer on June 18, 2026 at 7:18 am

    The simplest way is probably to use the java.util.logging framework and route it’s output to a file by following: How to get java Logger output to file by default. Then you don’t need to bother with packaging any extra dependencies for logging frameworks. If you do this, you have to use the java.util.logging api, which is slightly awkward compared to slf4j, but it’s still workable.

    You could certainly use slf4j as your interface instead, but you will need to package extra jar files with your application to accomplish that. If you know maven, then perhaps the easiest way package the libraries would be to build your project using the javafx maven plugin with appropriate dependencies placed in your project pom for the slf4j logging libraries you would like to use.

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

Sidebar

Related Questions

I am trying a very simple use of JavaFX using a simple set of
I was working on a small application using a simple binding in JavaFx 2.1
I generated a very simple runnable jar file using Eclipse's Export-->Java-->Runnable Jar File function.
I have created a JavaFX application, I have built native bundle using Ant ,
Using JavaFX within Swing, I create a JFXPAnel and a ScatterChart to the Scene.
I'm using JavaFX integrated HTMLEditor. All the functions that it has are fine but
I'm using javafx 2.0. I want to add an icon to the Tab in
At the moment I'm using JavaFX only for fun and learning it. What I
When using the WebEngine and WebView of JavaFX 2.0 to show some HTML content,
I'm using the Task class from JavaFx's API to perform network operations. The class

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.