yaricom / goNEAT

The GOLang implementation of NeuroEvolution of Augmented Topologies (NEAT) method to evolve and train Artificial Neural Networks without error back propagation
MIT License
75 stars 19 forks source link

Log levels do not work properly #62

Closed oowhyy closed 8 months ago

oowhyy commented 8 months ago
// InfoLog The logger to output messages with Info and up level
    InfoLog = func(message string) {
        if LogLevel <= LogLevelInfo {
            _ = loggerInfo.Output(2, message)
        }
    }

neat.InfoLog will log message even when neat.LogLevel = neat.LogLevelError because "error" <= "info" is true. Please fix

yaricom commented 8 months ago

Fixed