Cameradar 3.0.0: Uses ullaakut/nmap, runs faster, removed legacy code (#188)
Unit tests functional and coverage back to 100% Add more routes to dictionary, add more credentials, add default port 5554, rename cameradar logs ENV variable, improve unit test readability, remove tmp file
This commit is contained in:
committed by
GitHub
parent
878ca9f032
commit
5849898283
+41
@@ -0,0 +1,41 @@
|
||||
package wow
|
||||
|
||||
import "runtime"
|
||||
|
||||
// LogSymbol is a log severity level
|
||||
type LogSymbol uint
|
||||
|
||||
// common log symbos
|
||||
const (
|
||||
INFO LogSymbol = iota
|
||||
SUCCESS
|
||||
WARNING
|
||||
ERROR
|
||||
)
|
||||
|
||||
func (s LogSymbol) String() string {
|
||||
if runtime.GOOS != "windows" {
|
||||
switch s {
|
||||
case INFO:
|
||||
return "ℹ"
|
||||
case SUCCESS:
|
||||
return "✔"
|
||||
case WARNING:
|
||||
return "⚠"
|
||||
case ERROR:
|
||||
return "✖"
|
||||
}
|
||||
} else {
|
||||
switch s {
|
||||
case INFO:
|
||||
return "i"
|
||||
case SUCCESS:
|
||||
return "v"
|
||||
case WARNING:
|
||||
return "!!"
|
||||
case ERROR:
|
||||
return "x"
|
||||
}
|
||||
}
|
||||
return ""
|
||||
}
|
||||
Reference in New Issue
Block a user