Documentation ¶
Overview ¶
Package logging provides functionality for logging.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetLogLevelFromString ¶
SetLogLevelFromString sets the log level. SetLogLevelFromString returns an error if the given log level is not recognized by logrus.
Types ¶
type SimulatedHospitalLogger ¶
SimulatedHospitalLogger embeds the Logrus logger.
func ForCallerPackage ¶
func ForCallerPackage() *SimulatedHospitalLogger
ForCallerPackage builds a base Entry that prefixes the name of the package from which it was called and can be used instead of the standard logger.
func (*SimulatedHospitalLogger) WithError ¶
func (s *SimulatedHospitalLogger) WithError(err error) *SimulatedHospitalLogger
WithError adds an error as single field (using the key defined in ErrorKey) to the Entry. Overridden from logrus.Entry so that we can return a *SimulatedHospitalLogger.
func (*SimulatedHospitalLogger) WithField ¶
func (s *SimulatedHospitalLogger) WithField(key string, value interface{}) *SimulatedHospitalLogger
WithField adds a single field to the Entry. Overridden from logrus.Entry so that we can return a *SimulatedHospitalLogger.