profile
viewpoint

HouzuoGuo/schale 97

A subprocess interface for Scala

tersesystems/blindsight 81

Blindsight is a Scala logging API with DSL based structured logging, fluent logging, semantic logging, flow logging, and context aware logging.

tersesystems/echopraxia 50

Java Structured Logging API for Logback, Log4J2, and JUL

tersesystems/jvmsounds 32

Play memory allocation rate and GC events as sine wave and percussion, respectively.

tersesystems/ocaps 18

Object capability (ocap) tools and macros for Scala.

tersesystems/debugjsse 14

Debug JSSE Provider

tersesystems/terse-logback-showcase 8

An example Play project showing terse-logback

tersesystems/dynamic-debug-logging 3

Docker Compose PoC showing dynamic debug logging in the cloud using a structured logging framework.

tersesystems/echopraxia-plusscala 3

Scala API for Echopraxia

tersesystems/echopraxia-plusakka 2

Akka extensions for Echopraxia

issue commenttersesystems/blindsight

`log.isXXXEnabled()` causes allocation overhead

It's assigned to a val.

https://github.com/tersesystems/blindsight/blob/8bd69d5a164420dece13809049d10f4401453dad/api/src/main/scala/com/tersesystems/blindsight/slf4j/SLF4JLogger.scala#L53

Please see https://tersesystems.github.io/blindsight/performance/memory.html and https://tersesystems.github.io/blindsight/performance/benchmarks.html and I also wrote a couple of blog posts:

  • https://tersesystems.com/blog/2020/07/09/logging-vs-memory/
  • https://tersesystems.com/blog/2020/08/23/benchmarking-logging-with-jdk-14/
kamilkloch

comment created time in a month

issue closedtersesystems/blindsight

Logger eagerly evaluates the message before checking the log level

With log level set to INFO, the following snippet

logger.debug({ println("this should not be printed"); ""})

prints

this should not be printed

This is arguably an undesired behavior. Compare with https://github.com/lightbend-labs/scala-logging, where you can call log methods, without checking whether the respective log level is enabled.

closed time in a month

kamilkloch

issue commenttersesystems/blindsight

Logger eagerly evaluates the message before checking the log level

The first argument is an argument template, which takes a static string -- if you want to render an argument as the only thing in the template, you would typically do it using logger.debug("{}", Arguments("foo")).

You can use lazy blocks for preference:

logger.debug { debug =>
  val debugInfo = ...
  debug(st"I am a debugging statement with lots of extra $debugInfo")
}
kamilkloch

comment created time in a month

issue commenttersesystems/blindsight

Wrong line numbers

Source code is enabled by setting <property name="blindsight.source.enabled" value="true" scope="context"/> in a logback.xml file https://tersesystems.github.io/blindsight/usage/sourcecode.html

kamilkloch

comment created time in a month

delete branch tersesystems/echopraxia

delete branch : 3.2.0-SNAPSHOT

delete time in 2 months

push eventtersesystems/echopraxia

Will Sargent

commit sha 5bb9d7f9ca23cf92b5f225586c779b41b7a28f44

3.2.0-snapshot (#310)

view details

push time in 2 months

PR merged tersesystems/echopraxia

3.2.0-snapshot
+1 -1

0 comment

1 changed file

wsargent

pr closed time in 2 months

create barnchtersesystems/echopraxia

branch : 3.2.0-SNAPSHOT

created branch time in 2 months

PR opened tersesystems/echopraxia

3.2.0-snapshot
+1 -1

0 comment

1 changed file

pr created time in 2 months

delete branch tersesystems/echopraxia

delete branch : expose-logger-context

delete time in 2 months

push eventtersesystems/echopraxia

Will Sargent

commit sha 3555b6643a6701b045b4b7fb1eb632c16452e19d

Update logger context (#309)

view details

push time in 2 months

push eventtersesystems/echopraxia

Will Sargent

commit sha f706cebb625cad366c7cae9d186b330be1ce238c

fmt

view details

push time in 2 months

push eventtersesystems/echopraxia

Will Sargent

commit sha df6cc1a9ffc7d09bd5bc0cdd7974f3161fd43988

add tests

view details

push time in 2 months

create barnchtersesystems/echopraxia

branch : expose-logger-context

created branch time in 2 months

PR opened tersesystems/echopraxia

Update logger context
+126 -27

0 comment

10 changed files

pr created time in 2 months

issue openedlogseq/logseq

Menu drop down cut does not work with code block

Search first

  • [X] I searched and no similar issues were found

What Happened?

Cut using the menu drop down in Windows does not work in code blocks.

Reproduce the Bug

  1. Create a code block without any language specified using triple backtick
  2. Enter in several lines of text
  3. Select a line of text, and right click
  4. Select cut from menu popup

Expected Behavior

Should remove line of text.

Screenshots

Not applicable

Desktop or Mobile Platform Information

App Version: 0.9.10 Git Revision: 16c472b Platform: Mozilla/5.0 (Windows NT 10.0 Win64 x64) AppleWebKit/537.36 (KHTML like Gecko) Logseq/0.9.10 Chrome/104.0.5112.124 Electron/20.3.8 Safari/537.36 Language: en-US

Additional Context

I think this is probably because the nested editing in code blocks doesn't quite work.

Are you willing to submit a PR? If you know how to fix the bug.

  • [X] I'm willing to submit a PR (Thank you!)

created time in 2 months

push eventtersesystems/echopraxia-plusscala

Will Sargent

commit sha 5171c676505e2bfd554e2481ae4ec46d2b909998

Delete metals.sbt

view details

push time in 2 months

push eventtersesystems/echopraxia-plusscala

Will Sargent

commit sha 6f8ef70bc9cb2d17a715f0c0905ddd919f1194c2

Delete metals.sbt

view details

push time in 2 months

push eventtersesystems/echopraxia-plusscala

Will Sargent

commit sha fdca37f9e3969c36da79b3bfc978c78d316adbed

Delete metals.sbt

view details

push time in 2 months

push eventtersesystems/echopraxia

Will Sargent

commit sha e020bb81532f0315246902d9bcc04ebe52dcc6f4

Publish 3.1.0 documentation

view details

push time in 2 months

release tersesystems/echopraxia

3.1.0

released time in 2 months

created tagtersesystems/echopraxia

tag3.1.0

Java Structured Logging API for Logback, Log4J2, and JUL

created time in 2 months

PR merged tersesystems/echopraxia

Prep for 3.1.0
+5 -1

0 comment

2 changed files

wsargent

pr closed time in 2 months

delete branch tersesystems/echopraxia

delete branch : prep-3.1.0

delete time in 2 months

push eventtersesystems/echopraxia

Will Sargent

commit sha b1cdf5cbd3dc9ded2353154c3cb0748a943307b2

Prep for 3.1.0 (#308)

view details

push time in 2 months

PR opened tersesystems/echopraxia

Prep for 3.1.0
+5 -1

0 comment

2 changed files

pr created time in 2 months

create barnchtersesystems/echopraxia

branch : prep-3.1.0

created branch time in 2 months

delete branch tersesystems/echopraxia

delete branch : textformat

delete time in 2 months

push eventtersesystems/echopraxia

Will Sargent

commit sha 6062cfa5d6a1edecdd619304e4a5c00b098fb3aa

Add `withToStringFormat` to presentation field (#307)

view details

push time in 2 months

more