-
Notifications
You must be signed in to change notification settings - Fork 83
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
Comments
have you been able to work on this issue ? i am unable to see my ffmpeg logs in my logger |
You need to set both ffmpeg log level (with FFmpeg.setLogLevel) and logack reporting log level (in logback XML conf) |
I did...
.executeAsync().toCompletableFuture().thenAccept( durationResult -> {
FFmpeg.atPath(Path.of(FfmpegUtils.getFFMpegExecutablePath()))
.addInput(UrlInput.fromUrl(urlSrcPath.getPath()))
.setOverwriteOutput(true)
.setLogLevel(LogLevel.VERBOSE)
Also
-Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.SLF4JLogDelegateFactory -Dlogback.configurationFile=logback.xml
Here is the logback.xml
<configuration>
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<withJansi>false</withJansi>
<encoder>
<pattern>%date %highlight(%-5level) %cyan(%logger{10}@[%-4.30thread]) - %msg%n</pattern>
</encoder>
</appender>
<root level="VERBOSE">
<appender-ref ref="CONSOLE"/>
</root>
<logger name="com.github.kokorin.jaffree.ffprobe.FFprobeLogReader" level="VERBOSE"
additivity="false">
<appender-ref ref="CONSOLE"/>
</logger>
<logger name="com.github.kokorin.jaffree.ffmpeg.FFmpegStopper" level="VERBOSE" additivity="false">
<appender-ref ref="CONSOLE"/>
</logger>
<logger name="com.github" level="VERBOSE" additivity="false">
<appender-ref ref="CONSOLE"/>
</logger>
</configuration>
…On Feb 15, 2022, 3:24 PM -0500, Denis Kokorin ***@***.***>, wrote:
You need to set both ffmpeg log level (with FFmpeg.setLogLevel) and logack reporting log level (in logback XML conf)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
From the code snippet it looks like you execute ffmpeg twice. |
The text was updated successfully, but these errors were encountered: