Live data from Hacker News

‘Woof’, a pure Scala 3 logging library

medium.com

1–10 of 50 posts

Re: ‘Woof’, a pure Scala 3 logging library

#3
I'm sorry but I don't understand why. It seems like this falls for the same kind of over-engineering which caused log4j's issues in the first place.

> Announcing Bark! A logging library written purely in C! Blazingly fast! 0 dependencies! It even prints file and line numbers!

    #ifdef DEBUG
    #define LOG(msg, ...) printf("[__FILE__ __LINE__]: " msg, ...)
    #else
    #define LOG(msg, ...)
    #endif

Re: ‘Woof’, a pure Scala 3 logging library

#4

I'm sorry but I don't understand why . It seems like this falls for the same kind of over-engineering which caused log4j's issues in the first place. > Announcing Bark! A logging library written purely in C! Blazingly fast! 0 dependencies! It even prints file and line numbers! #ifdef DEBUG #define LOG(msg, ...) printf("[__FILE__ __LINE__]: " msg, ...) #else #define LOG(msg, ...) #endif

Never be so sure, https://twitter.com/vm_call/status/1405937492642123782 .

Re: ‘Woof’, a pure Scala 3 logging library

#6

I'm sorry but I don't understand why . It seems like this falls for the same kind of over-engineering which caused log4j's issues in the first place. > Announcing Bark! A logging library written purely in C! Blazingly fast! 0 dependencies! It even prints file and line numbers! #ifdef DEBUG #define LOG(msg, ...) printf("[__FILE__ __LINE__]: " msg, ...) #else #define LOG(msg, ...) #endif

Could you point to what you think is over-engineered here?

Re: ‘Woof’, a pure Scala 3 logging library

#7
Having been primarily a Scala dev for the last 12 years I feel like people have slowly lost their minds over what pragmatic FP in Scala should be.

People are willingly recreating the Java situation of 'I don't know the project yet but I know we need Spring!' with these ridiculous libraries from Haskell zealots for no obvious benefit.

The ergonomics of this lib out of the box are literally worse for no reason, and worse than most other existing logging libs, because of it

Re: ‘Woof’, a pure Scala 3 logging library

#10

I'm sorry but I don't understand why . It seems like this falls for the same kind of over-engineering which caused log4j's issues in the first place. > Announcing Bark! A logging library written purely in C! Blazingly fast! 0 dependencies! It even prints file and line numbers! #ifdef DEBUG #define LOG(msg, ...) printf("[__FILE__ __LINE__]: " msg, ...) #else #define LOG(msg, ...) #endif

> this falls for the same kind of over-engineering which caused log4j's issues in the first place

Because it uses an effects system, which are designed to control side effects like the one which caused log4j's vulnerability, it looks like a reaction against log4j, not "more of the same problem".

Whether this is a sound approach or not, I cannot say. But definitely not a case of log4j-like overengineering.

Post reply on HN