This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-23
Channels
- # babashka (68)
- # beginners (133)
- # calva (5)
- # chlorine-clover (21)
- # cider (40)
- # clj-kondo (42)
- # cljs-dev (31)
- # clojure (53)
- # clojure-austin (1)
- # clojure-europe (30)
- # clojure-italy (6)
- # clojure-nl (3)
- # clojure-uk (104)
- # clojurescript (15)
- # datascript (2)
- # datomic (50)
- # emacs (12)
- # fulcro (82)
- # graalvm (4)
- # hoplon (225)
- # jobs (4)
- # jobs-discuss (7)
- # joker (5)
- # juxt (17)
- # kaocha (13)
- # leiningen (16)
- # meander (21)
- # nrepl (18)
- # off-topic (16)
- # pathom (8)
- # pedestal (13)
- # perun (1)
- # re-frame (4)
- # spacemacs (23)
- # testing (28)
- # unrepl (3)
- # vim (5)
- # xtdb (1)
I have to say ive really liked the early hour for the elderly and vunerable at the supermarkets
I was waiting for the shops to open to general public today and was impressed that people werent kicking up a fuss
Anyone have much experience with sente? Trying to work out why it keeps not working with mount
timbre has worked out pretty well for us
but I tolerate a few things. I moved from log4j (when it was a 1 release) to logback years and years ago and had a good experience, inertia has prevented me from looking elsewhere
yeah, I looked around when starting a new system, and the performance of log4j2 over everything else (and the non-xml option) sold me.
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="10 seconds">
<statusListener class="ch.qos.logback.core.status.NopStatusListener"/>
<variable name="ROOT_LOG_LEVEL" value="${ROOT_LOG_LEVEL:-info}"/>
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<Pattern>[%boldWhite(%d)] --- [%boldBlue(%-5level)][%boldGreen(%-40.40logger{40})][%boldMagenta(%-4.4L)] - %msg%n%rEx</Pattern>
</encoder>
</appender>
<root level="${ROOT_LOG_LEVEL}">
<appender-ref ref="CONSOLE"/>
</root>
</configuration>
would never want to be without that again
clojure.tools.logging here with slf4j/log4j2. I personally really don’t get on with timbre — but depends on what you want from logging.
> some folks dislike xml I dislike it too; and all things being equal I should prefer timbre with edn config… however the truth is that slf4j/log4j2 via clojure.tools.logging are just far more mature, ship with better defaults, and give you better capabilities such as capturing logging with java libraries such as apache http-client which have been invaluable to us. Yeah you could do this with timbre too; but then you have your backends logging configuration and timbre’s too — it’s just redundant. Plus I found timbres defaults (at least via duct) in prod were horrible; e.g. the syntax colouring by default means tailing logs over ssh the logs are full of gunk… so I had to switch stuff like that off. Plus I ran into a few bugs back in the day; that are probably all fixed now but it felt it was just adding complexity for me. Especially given the log4j configs we need are typically pretty minimal.
I actually use slf4j-simple for most stuff. You can do the basic config with system properties, and it just works. Logging is by far the most over-engineered thing in the whole JVM ecosystem.
@U06HHF230 we ended up using a timbre appender - just one lot of EDN config for all our clj + java logging
@U0524B4UW yeah and that’s great — but if you want to log stuff in java libraries you’re using; and one library uses log4j and the other java.util.logging; you really don’t want to add timbre too.
oh, i think we intermediate with slf - so our clj timbre client uses an slf backend, and our slf uses a timbre appender. it's been a while since i looked at the details, so i'm a bit hazy tbh, but we successfully capture logging from lots of java libs without having to make any code changes
I've made some regretable technical decisions in my career, but keeping clojure.tools.logging
as an abstraction and away from being a logging implementation is not one of them. 🙂
@U9HA101PY I don’t think java logging is particularly over engineered. Yeah nobody likes how the ecosystem is; and if sun had just include java.util.logging before log4j etc and it had been established; things would be fine… but given we have multiple frameworks now… I think it’s engineered to the right level… it’s just now a complicated problem 😞
ah, here we go: https://github.com/fzakaria/slf4j-timbre
Yeah I’ve used that too
@U06HHF230 Yeah, I don't really mean that anybody set out to over engineer it, and you're quite right it was the intro of JUL that really started the whole mess. Whatever you call it though, over-engineered, over-complex etc... this is now a near 40 post thread while we discuss the ways we write lines of text to a file... something perhaps of a case-in-point 🙂
Yeah I don’t disagree with that
@U5ZNLFCQ7 With your setup, are you able to dynamically change logging levels in production?
@UQXS91RT7 Yes, insofar as changes to the log4j2.properties
file will be reloaded if given a monitorInterval
. There might be a way to do it via JMX, but I haven't had to look into it yet.
Still deciding between frameworks though. @U5ZNLFCQ7 is your properties file external to the uberjar? @U11EL3P9U interesting, might look at that
Yes, all configuration is external (not just logging), and their locations specified at runtime via system properties.
Though for production use of mucking about with logging config, I'd go with the JMX approach.
https://logging.apache.org/log4j/2.x/manual/configuration.html#Automatic_Configuration
Miaow > Apache Log4j 2 is an upgrade to Log4j that provides significant improvements over its predecessor, Log4j 1.x, and provides many of the improvements available in Logback while fixing some inherent problems in Logback’s architecture.
I've not tried log4j2, must be time to check it out
We were using Timbre for years, but a while back we switched everything over to log4j2, with clojure.tools.logging
.
(we weened ourselves off all of the taoensso libraries over a period of several months -- just seemed like a lot of code for stuff that didn't really need all that configurability/customization)
I use the taoensso library for i18n - tempura - works well. That's the only one I use 🙂
How's everyone doing with working from home? So far so okay for moi 🙂 Although with a young kid, it's going to be an endurance if this stretches out for months...
i work from home anyway, so plus ça change
Good at the minute — but wfh’d a lot anyway, though I am missing going in to the office. Not sure how it’ll be with nurseries when my wifes mat leave ends; in a few weeks still not heard what they’re planning; whether we’re obliged to still pay them to hold a place etc… She’s a probation officer and should be classed as a key worker though, so maybe places will be available but not sure I want to be mixing large groups of children right now anyway.
I've been working from home for thirteen years now (with about 18 months in there where I had to go into a local office a few days a week). My wife's climbing the walls a bit tho'... her routine was an hour or two down the gym every morning and of course... no more of that...
I just spoke to my mum and she says the UK has said restrictions will be in place for twelve weeks? (at least)
I've never worked from home for longer than 2-3 days in a row, but in a previous career as a journalists I had to work outside of the office for long stretches. This wasn't home-working, though, it was working in coffee shops, libraries, or whatever. Having a home office where I go every day is quite a different experience for me. I'm on week two. Still doing OK. Haven't gone nuts yet.
Last time I worked from home was a few years ago, for a full year. This is the first time since then for an extended duration with a 3 year old in tow too!
Immediate?
you get out once a day to take your constitutional
Police will have powers to stop and ask, I'm sure the details will come out in a bit (including the full terms, i.e., fines etc..)
in some areas of the uk, deliveroo will shop certain items from yr local coop
or at least they did when I was there
I think you can go out to get food
My wife is of the opinion there will be a massive baby boom in 9 months. After all, once you've both binge watched all of netflix, amazon, hulu, disney+, apple tv...what then??...what then??
nah, in 18 mths as pregnant women are higher risk. I reck people will wait til corona is past
(but there will be a boom for sure)
does anyone here have any experience with K8S/EKS auto-scaling ?
in some areas of the uk, deliveroo will shop certain items from yr local coop
How do you specifically specify the location?