wc -l counts lines, and almost everybody knows it. The capital -L in GNU wc answers a different question: how long is the longest line?
wc -L access.log
It prints the maximum display width followed by the file name. Use input redirection when you only want the number:
wc -L < README.md
I find it handy to check whether a text file respects a line length limit, for example 80 characters in a README or a commit message template. When the number comes out above the limit, grep -n '.\{81,\}' README.md shows which lines are too long.
It also tells you why a log file looks broken in a terminal. If the longest line is 20,000 characters, there is probably a stack trace or a JSON blob on one line, and less -S will be a lot more pleasant to read it with.
With several files it prints a value per file and a total line, which for -L is the maximum and not a sum.
The coreutils manual says it reports the display width, not the number of bytes. A tab counts up to the next tab stop, so a line with tabs can come out wider than its character count, and wide characters such as many emoji count as two. That matches what you see on screen, but not what a byte limit would measure.
Further reading: GNU coreutils: wc invocation