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
if it's java console:
java -jar class.jar <somefile.file> 1>> log.txt
Comments
Post a Comment