The Goland command line prints incomplete logs, and the normal execution logs are not printed

Problem Description

The printed log is very long. When debugging, it is found that the following logs are not printed normally, but the execution logic is correct, and the test result is successful.

problem analysis

The idea console has a limit on the number of lines, and the content exceeding 1024kB will be cleared, so it will not be displayed
insert image description here

solution

For reference: https://www.cnblogs.com/qinxu/p/9258751.html

  • Newline output log
  • Output the log as a file and display it all

Guess you like

Origin blog.csdn.net/qq_42647903/article/details/129024306