Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4945

Log output mode is not standardized

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.10.0, 0.11.0, 0.12.0
    • 0.13.0
    • Java - Library
    • None

    Description

      TFileTransport prints logs using system.err.
      System.out is the cache stream and system.err non-buffered stream. In other words, the former does not necessarily print the log output immediately,
      and the latter will print immediately. This will make the exception log order not in the specified position, increasing the difficulty of analyzing the abnormal log, and Unable to manage logs
      So I did something for the community and changed it to slf4j.log to output the log.
      Thanks.
      best regards.

      Attachments

        Activity

          People

            Unassigned Unassigned
            pengzhouhu pengzhouhu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m