SW-49 Better logging information

Added length information to formatStringBuf