I want to log data in a file which is displayed on java console when I run .jar file -


i have .jar file executing java -jar file_name.jar.

then program outputs ide console, prompt asking user credentials. after authenticating, program prints database data console.

how can redirect console data output filestream?

i tried adding logger while executing command java -jar file_name.jar. no success.

i not java person, don't have idea how that. suggestion or great.

edit

screenshot addded gui screen enter image description here

if it's java console:

java -jar class.jar <somefile.file> 1>> log.txt 

Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -