Logging and error reporting
HydraExpress includes a
logmember which allows you to log into to both the console and log file.
The first parameter to
logis the type of log message:
info. The second parameter is the string message to store. It's highly recommended that you take the opportunity to create highly descriptive log messages since this function doesn't log a stack trace.
Additionally, log messages of type
errorare sent to hydra-core for logging inside of the services health check log. See:https://github.com/flywheelsports/hydra#health-and-presence