x-cray / logrus-prefixed-formatter

Logrus Prefixed Log Formatter
MIT License
199 stars 107 forks source link

Use IsTerminal implementation from golang.org/x/crypto/ssh/terminal #23

Closed x-cray closed 7 years ago

x-cray commented 7 years ago

Closes #22

GwynethLlewelyn commented 8 months ago

Note that as of 2024, golang.org/x/crypto/ssh/terminal is deemed to be deprecated, and that one should use golang.org/x/term instead, which doesn't require all the extra baggage from the Crypto library.

Alternatively, if all you need is the IsTerminal() function, you may just need to include @mattn's tiny library: https://github.com/mattn/go-isatty — it works well and is used by a trillion Go apps & libs out there, so I guess it's fine to use 😁