Skip to content

Commit

Permalink
Add new "Trace" log level to show ffmpeg windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonQ committed Jun 6, 2020
1 parent 13b03d6 commit 2813c2a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/File Parser/FileParser.vb
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ Class FileParser
End Try

Try
Dim CreateWindow As Boolean = (MyLog.DebugLevel = Debug)
Dim CreateWindow As Boolean = (MyLog.DebugLevel = Trace)
Dim ffmpeg As New ProcessStartInfo(MyGlobalSyncSettings.ffmpegPath) With {
.CreateNoWindow = Not CreateWindow,
.UseShellExecute = False
Expand Down
7 changes: 7 additions & 0 deletions src/Logger.vb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Imports System.Environment
Public Class Logger

Public Enum LogLevel
Trace
Debug
Information
Warning
Expand All @@ -27,6 +28,8 @@ Public Class Logger
Public Shared Function ConvertStringToLogLevel(LogLevelString As String) As LogLevel

Select Case LogLevelString
Case Is = "Trace"
Return Trace
Case Is = "Debug"
Return Debug
Case Is = "Information"
Expand All @@ -44,6 +47,8 @@ Public Class Logger
Public Shared Function ConvertLogLevelToString(LogLevel As LogLevel) As String

Select Case LogLevel
Case Is = Trace
Return "Trace"
Case Is = Debug
Return "Debug"
Case Is = Information
Expand Down Expand Up @@ -84,6 +89,8 @@ Public Class Logger
Dim LogMarker As String

Select Case LogLevel
Case Is = Trace
LogMarker = " [Trace] : "
Case Is = Debug
LogMarker = " [Debug] : "
Case Is = Information
Expand Down

0 comments on commit 2813c2a

Please sign in to comment.