‘Woof’, a pure Scala 3 logging library
medium.com
‘Woof’, a pure Scala 3 logging library
1–10 of 50 posts
Re: ‘Woof’, a pure Scala 3 logging library
#2Re: ‘Woof’, a pure Scala 3 logging library
#3> 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, ...)
#endifRe: ‘Woof’, a pure Scala 3 logging library
#4I'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
#5It's a beautiful and simple language, more so than Scala 2 and I cannot recommend it highly enough for many productive use-cases.
Re: ‘Woof’, a pure Scala 3 logging library
#6I'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
#7People 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
#8Re: ‘Woof’, a pure Scala 3 logging library
#9I don't get it: Why do we need category theory and monads for every little fart?
I'm not familiar with Woof but it looks like an attempt at writing a pure logging lib. What is wrong with that?
Re: ‘Woof’, a pure Scala 3 logging library
#10I'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
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.