For what it's worth, I create two subs in every project in my main module and call them:
B4X:
Public Sub MyLog(Text As String)
#If DEBUG
LogColor(Text, Colors.Magenta)
#End If
End Sub
Public Sub MyLogError(Routine As String, Text As String)
LogColor("Source: [" & Routine & "] Error:" & Text, Colors.Red)
End Sub
That way, in my code I can use module.MyLog(...) for debugging and module.MyLogError(...) for log statements I want regardless of which mode I'm in.