-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log statements in Reader/Writer/Processor/Listener not printing #102
Comments
Are you using a |
@jamezp yes |
i have also tried using System.out.println() within my Reader/Writer/Processor/Listeners. Even those messages are not getting printed. |
There shouldn't be anything consuming stdout or reconfiguring logging in JBeret itself. The JBeret test suite itself uses logging and writes to stdout with no issues. What does your logging.properties look like? What kind of other dependencies do you have in your project? |
my logging.properties has the following content
my pom.xml dependencies are as follows
|
I don't see anything obviously wrong here. I'm working on a reproducer so hopefully soonish I'll be able to have a look. It looks like maybe you're running this on zO/S. Do you see the same issue on other OS's too? |
Sorry for the delay. I finally was able to get a working sample together that shows logging does seem to be working for me, https://github.com/jamezp/issue-reproducer/tree/jberet-test. If you just build the |
Just as a follow up I did test this with a J9 JVM and it seemed to work for me. Below is the output.
|
I am trying to run a JSR352 java batch program in Java SE mode using JBERET implementation. I can see my main() method getting executed. It is in this main() method i get handle of a job operator and starting the job.
but, I do not see any log statements inside my reader, processor, writer or listeners getting printed.
I have a logging.properties defined and loaded from my projects
src/main/resources/META-INF
folder. The log statements in my main() method is getting printed according to it but, the log statements in my reader/writer/processor and listeners aren't printing at all.Why isn't my log statements (java log library) in my java batch program to be printed ?
I have also tried giving the following VM Arguments while running my java program , yet no changes
-Dorg.jboss.logging.provider=jdk -Djava.util.logging.config.file=C:\pilotJBeret\src\main\resources\META-INF\logging.properties
Here are the logs from the main() method. I can clearly see that a job has been started but, not sure why the log statements of the batch program isn't getting printed.
The text was updated successfully, but these errors were encountered: