Skip to content
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

Add instructions how to configure logging. #271

Open
kokorin opened this issue Jan 21, 2022 · 4 comments
Open

Add instructions how to configure logging. #271

kokorin opened this issue Jan 21, 2022 · 4 comments

Comments

@kokorin
Copy link
Owner

kokorin commented Jan 21, 2022

  • Explicitly require logs for any issue with Jaffree/ffmpeg unexpected/incorrect behavior.
  • Explicitly require ffmpeg commands executed manually from CLI to reproduce an issue,
  • Add Readme section with log configuration
  • Add log configuration example
  • Add FFprobe tests to verify logs are parsed correcly.
@moolap-ts
Copy link

have you been able to work on this issue ? i am unable to see my ffmpeg logs in my logger
INFO: com.github.kokorin.jaffree.JaffreeException: Process execution has ended with non-zero status: 1. Check logs for detailed error message.
i added logback.xml from examples/test resources but still unable to see more details as to why. i have anon zero status

@kokorin
Copy link
Owner Author

kokorin commented Feb 15, 2022

You need to set both ffmpeg log level (with FFmpeg.setLogLevel) and logack reporting log level (in logback XML conf)

@moolap-ts
Copy link

moolap-ts commented Feb 15, 2022 via email

@kokorin
Copy link
Owner Author

kokorin commented Feb 16, 2022

From the code snippet it looks like you execute ffmpeg twice.
I would start with checking if logback configuration is correct, there is no log level VERBOSE in SLF4J API (which logback implements).
But everything else looks ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants