Skip to content

New TextFile log handler.

Pre-release
Pre-release
Compare
Choose a tag to compare
@olivier-spinelli olivier-spinelli released this 06 May 09:23
· 821 commits to develop since this release
  • CK.Text: new CKBinaryReader/Writer and new API (string extensions) to support end-of-lines CRLF vs. LF only API.
    • CKBinaryReader/Writer specialize BinaryReader/Writer in order to:
      • Expose Read/WriteSmallInt32 (exposing the protected Read/Write7BitEncodedInt)
      • Expose Read/WriteNullableString
      • CKBinaryReader.ReadString( bool streamIsCRLF ) handles end-of-line normalization.
    • Using CK.Text namespace, 3 extension methods on string exist:
      • “string”. NormalizeEOL()
      • “string”. NormalizeEOLToLF()
      • “string”. NormalizeEOLToCRLF()
  • CK.Core:
    • CKExceptionData :
      • new binary version 1 for CKExceptionData. Reading from version 0 is supported.
      • Fix for FusionLog property a '(partial)' line was emitted with a \n. It is now normalized.
  • CK.Monitoring:
    • new version 6 for binary support (previous v5 format is correctly read).
    • v6 binary now handles CRLF/LF difference between writer and reader for each log entry. A bit is used in the StreamLogType short that specifies the writer CRLF configuration.
    • A new TextFile GrandOutputHandler :
      • Numbering and temp file management work the same as BinaryFile (.ckmon).
      • The monitor number is computed (hexa) and appears at the start of the lines.
        The apparition of a new Monitor in each text file display its new number and its Guid on one line.
      • LogTime appear in full only when the minute changed: the diff in second/fractions is displayed inside a minute.
      • Log Tags are not displayed (but Group conclusions are).
      • GrandOutput.EnsureActiveDefaultWithDefaultSettings() now defaults to TextFile instead of BinaryFile.
    • Previously existing tests for CK.Monitoring have been restored.