hseeberger / log4dotty Goto Github PK
View Code? Open in Web Editor NEWExperimental (just for learning) logging library powered by Dotty / Scala 3 macros
License: Apache License 2.0
Experimental (just for learning) logging library powered by Dotty / Scala 3 macros
License: Apache License 2.0
Hi,
I read your blog post
https://heikoseeberger.rocks/2019/06/19/2019-06-19-dotty-1/
I'm trying to contribute some code to the scala-logging
lightbend-labs/scala-logging#212
but encountered many issues arising from the usage of macros, and i was wondering why use macros here at all, instead of by-name parameter passing, as you explore in this repo.
i'm assuming the cause is due to callsite information being lost if you can't inline (via macros in scala2 or inline via new features in scala3),
but apparently, for example in logback, this can be configured in the pattern layout encoder (as i mention in my PR), so not sure if this is a big deal?
I'm asking because i'm thinking of creating a new logger library,
with a scala 2 version that works via by-name parameter passing, and possibly a scala 3 compatible version that may or may not use inline features.
Would appreciate your feedback,
Thanks!
Nathan Grunzweig
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.