Comments (4)
Good question.
If you just want to trace the SCR, maybe this helps:
https://github.com/apache/felix-dev/tree/master/scr#configuration
from equinox.
If you just want to trace the SCR, maybe this helps
This will require each and every component to provide custom properties, that's not really useful.
e.g. the slf4j simple logger has the following properties: https://www.slf4j.org/api/org/slf4j/impl/SimpleLogger.html that would be useful here is well.
from equinox.
External configuration of each LoggerContext
can be done through the method org.osgi.service.log.admin.LoggerContext.setLogLevels(Map<String, LogLevel>)
which can be obtained from the LoggerAdmin
service with the org.osgi.service.log.admin.LoggerAdmin.getLoggerContext(String)
method.
There is also Configuration Admin which can be used to configure LoggerContext (see https://docs.osgi.org/specification/osgi.core/8.0.0/service.log.html#d0e54441)
We do have built-in configuration property eclipse.log.level
(set through config.ini
) that can control the LogLevel
of the logger named org.eclipse.equinox.logger
. This is the logger that writes to the .log
file and is the logger used by other logging APIs in Eclipse that end up forwarding their messages to the OSGi Logger. The value can be set to INFO, WARNING and ERROR, INFO will for example show all log message. I'm open to having a more general property that can somehow be used as a default source for configuring other logger names. Although I would probably not recommend trying to shoehorn that into the existing eclipse.log.level
configuration property because that one is awkward and predates the whole OSGi LoggerContext API.
from equinox.
@tjwatson thanks for the insight, I know this could be done through config admin / logger admin, I'm just more searching for something that is used as defaults if no such configuration exits.
For example I currently investigate if we can include slf4j-osgi but this might produce a lot of log outputs, so people will instantly complain about "logspam", so an easy to use (e.g. adding a property to eclipse.ini) would be good, while telling them to fetch OSGi service and doing something in code will most probably be "to complex" :-)
from equinox.
Related Issues (20)
- [macOS] CLASS: class 'KeyWindow' 0x113dea680 small method list 0x113de4c68 is not in immutable memory HOT 3
- MacOS launcher artifacts test failing in the github workflows HOT 3
- z/OS issues with behavior of canWrite HOT 1
- Unable to install org.eclipse.equinox.executable.feature into 4.32 HOT 8
- jdk.net not part of Java 8 profile HOT 1
- Multiple versions of Jetty bundles cause Missing Constraint problems HOT 4
- [macOS] Launcher in 4.31 cannot find its companion shared library when invoked via symlink HOT 1
- JRE-1.1.profile has no system packages HOT 11
- Integrate Equinox launcher and executable natives build into the Equinox Jenkins pipeline HOT 3
- Issue with equinox weaving on Eclipse version 2024-03 HOT 20
- org.eclipse.equinox.http.service.api and org.osgi.service.http.whiteboard not available in Equinox SDK v4.31 zip archive HOT 18
- [win] ServletTest fails on I-Builds since I20240411-1800 HOT 1
- [MacOS] Opening file from command line fails
- Eclipse fails to launch after update with JRE 22.0.1: java.lang.NoSuchMethodError: getMainType HOT 7
- Move more launcher functionalities from native code to Java HOT 11
- Child app launched from Eclipse no longer shows splash screen since I20240507-2220 build (Mac aarch64) HOT 9
- [Mac Sonoma] "WARNING: Secure coding is not enabled for restorable state" warning message HOT 8
- [macOS] Regression on Eclipse 4.31 launcher using relative `../bin/java` of a JDK with macOS layout HOT 5
- URL protocol platform:/ is valid, but resolving it logs the error about unknown protocol HOT 6
- StateBuilder should consider Constant.REQUIRE_CAPABILITY when calculating BREE for BundleDescription HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from equinox.