Twitter Logging Service v1.2.0 Release Notes

Release Date: 2014-12-06 // over 9 years ago
    • Made class TLSFileOutputStream more abstract as a base + protected implementation
    • no longer implements @protocol TLSDataRetrieval
    • keeps the generic readonly @property 'constants', but makes them @protected
    • 0️⃣ implements one default initializer taking a logging directory and a file name
    • 0️⃣ implements one convenience initializer taking a file name and making use of the default logging directory
    • 👉 makes 'init' NS_UNAVAILABLE
    • keeps the public defaultLogFileDirectory class method & the tls_outputLogInfo: and tls_flush methods
    • keep the several protected (void)write methods
    • 🔨 refactor some portions of (instancetype)initWithLogFileDirectoryPath:logFilePrefix:maxLogFiles:maxBytesPerLogFile:error: to new protected createLogFileDirectoryPath:error: & openLogFile:error:

    • Made new protocol TLSFileOutputStreamEvent based on methods that had been "abstract" and "overrideable" in the old TLSFileOutputStream

    • 👉 makes use of the new typedef TLSFileOutputEvent for the first argument of all functions

    • Made new class TLSRollingFileOutputStream as a concrete implementation of TLSFileOutputStream

    • copied over all of the old initializers from TLSFileOutputStream

    • copied over from TLSFileOutputStream the @property items that were specific to rolling file output stream

    • interface creates new NS_ENUM TLSRollingFileOutputEvent (based upon TLSFileOutputEvent and override-able fileStreamEvent methods

    • takes over implementation of protocol TLSDataRetrieval

    • takes over implementation of fileOutputEventBegan/Finished/Failed methods via implementation of the @protocol TLSFileOutputStreamEvent