Releases: ContainerSSH/log
0.9.11: Log cleanup
This release cleans up the output format. It also deprecates the formatting messages, such as Noticef
in favor of logging Message
objects.
It also adds multi-format support to and fixes the Syslog writer.
0.9.10: Moved to struct-based logging
- Added a new error type called
Message
as a preferred way of generating errors. - Removed error methods, such as
Noticee
, etc - Added labels to messages and loggers
0.9.9: Added test logger
This release adds a test logger that helps with logging for tests.
0.9.8: Added configuration validation
This release adds a Validate()
method to the configuration to allow for central validating the entire configuration structure before run.
0.9.7: Default configuration values
The previous version included an incorrect default value for the level
setting. This is now fixed and defaults to the notice
level.
0.9.6: YAML and JSON marshalling
In the previous release we did not consider the need for also marshalling log level values. This release adds the marshalling method to encode log levels to their string representations in YAML and JSON. It also adds the ability to unmarshal from the numeric values should they be present.
0.9.5: YAML and JSON unmarshaling
This release fixes the JSON and YAML unmarshalling, so it is compatible with the ContainerSSH 0.3 log format.
0.9.4: Bugfixing text logging
This release adds the timestamp to the text format and documents both formats.
0.9.3: Adding Module Scoping
This release adds several improvements to the logging facilities:
- All factory and other methods have now been moved to the
log
package instead of the subpackages. - All factory methods now have a
module
parameter which is reflected in the output. This will allow log filtering on a per-module basis. Users are encouraged to create loggers separately for every module. - Several factory methods now accept a config structure instead of a log level. This config structure can be used to customize the formatter as well as the log level.
- We have added a
text
log format.
0.9.2: Bugfixing Go Logger
This release fixes the NewGoLogWriter()
method to return io.Writer
instead of a package-scoped pointer.