question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve logging output format based on actual binding of Application Logging service or some env property

See original GitHub issue

From the documentation:

If VCAP_SERVICE variables are present in the environment variables the kibana format is used, because the SAP Cloud SDK assumes your application is running on Cloud Foundry.

It appears to do just that, only having any VCAP_SERVICE in the environment variables is too broad. When developing locally, most of the time there will be some VCAP_SERVICE set, not because it’s running in CF, but because they are being set through default-env.json or otherwise to hook into CF services from the local runtime.

This means at the moment Cloud SDK is very often wrongfully assuming it’s running in CF, when it’s not.

Proposal: check for both the presence of the Application Logging service in VCAP_SERVICE or the explicit configuration of requesting Kibana specific formatting output through the presence of an environment variable. For example features.kibana_formatter=true which is also used for CAP.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
marikanercommented, Apr 7, 2022

Seems that we lost track of this. I now prioritized it higher in our backlog. No promises when this can be done, but it’s back on our plate.

1reaction
jjtang1985commented, Jun 22, 2022

Hi @piejanssens ,

We implemented the feature about a month ago and the stable version was released. Please try version 2.5.0. Here you can find the updated doc regarding the log format.

Please reopen, if you have questions.

Best, Junjie

Read more comments on GitHub >

github_iconTop Results From Across the Web

Logging in .NET Core and ASP.NET Core | Microsoft Learn
The Logging property can have LogLevel and log provider properties. The LogLevel specifies the minimum level to log for selected categories. In ...
Read more >
Java Logging Basics - The Ultimate Guide To Logging - Loggly
java.util.logging stores its configuration in a file called logging.properties. It uses the Properties format to store settings as key/value pairs.
Read more >
Set Logging Level in Spring Boot via Environment Variable
I've tried setting env vars like LOGGING_LEVEL_ORG_SPRINGFRAMEWORK=TRACE but that has no effect. Putting logging.level.org.springframework: ...
Read more >
Log4j 2 Lock-free Asynchronous Loggers for Low-Latency ...
Asynchronous logging can improve your application's performance by executing the I/O operations in a separate thread. Log4j 2 makes a number ...
Read more >
Configuring logging - Keycloak
Configuring the console log format. Keycloak uses a pattern-based logging formatter that generates human-readable text logs by default. The logging format ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found