Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImprove handling of application log line prefixes #7
Comments
|
This involves removing public member variables - not suitable for a minor release. Moving to 3.0.0 |
The meta-data printed in front of each line of application logging (e.g
15/Apr/2019:13:44:23 Z DEBUG [grncQueryManager]) is controlled by:facility/config/logging.jsonfacility/builder/logger/builder.gologging/format.goand its associated testThe original concept was that an application could choose from a set of 'preset' prefixes or specify their own. In reality, there is one a default preset and if the application wants something different they need to provide their own format.
This change is to:
logging.PresetFormatFrameworkand into configuration atLogWriting.Format.PrefixFormatThere is also a bug where it is impossible to set empty string as the prefix which is definitely a foreseeable use-case. The ideal fix here is to change
logging.LogMessageFormatter.PrefixFormatto*types.NilableString