You need to check operator precedence.
If LogSettings = 2 Or 3 Then
is being parsed as
If (LogSettings = 2) Or 3 Then
which is always true, because 3 is nonzero.
What you need is something like
If (LogSettings = 2) Or (LogSettings = 3) Then
Alternatively, you could use
If LogSettings >= 2 Then
or
Ff LogSettings > 1 Then