Comments (18)
thanks ! I'll have a look a.s.a.p
from quarkus-logging-manager.
Ok, I have actually seen this before. After a while all the loggers are there. I am not sure what triggers that. This is actually a quarkus bug (you will see the same issue in the dev ui)
I'll look into this a bit more. You should be able to still use the REST endpoint and provide that logger to change the level.
from quarkus-logging-manager.
I have fixed this (locally), I'll do a PR soon
from quarkus-logging-manager.
Try setting quarkus.logging-manager.openapi.always-include=true
in application.properties
from quarkus-logging-manager.
No luck. I have added it in the configuration and tried to access GUI with:
http://localhost:8080/q/logging-manager-ui
http://localhost:8080/logging-manager-ui
from quarkus-logging-manager.
Sorry: I gave you a wrong config:
It's quarkus.logging-manager.ui.always-include=true
See https://github.com/phillip-kruger/logging-manager-example
from quarkus-logging-manager.
Thank you. It works fine now.
But a question, When I try to modify the logging level of a object that has been initialized with new
, i could not find them.
Is there any way to modify the logging level of those new
objects ?
from quarkus-logging-manager.
I am not following, can you share some code and more info ?
from quarkus-logging-manager.
There are some beans which are not annotated with anything and they were initialized using new
keyword during runtime.
example:
package org.mypackage.nestedpackage;
public class SimpleClass{
String name;
private static final Logger LOG = LoggerFactory.getLogger(SimpleClass.class);
public logSomething() {
LOG.info("something");
}
And I would like to change the log level of this class. But I could not find this class in the list (in GUI).
Please let me know if you need more details.``
from quarkus-logging-manager.
Where does LoggerFactory
come from ? Have you tried with Java Util Logger or JBoss Logger ?
from quarkus-logging-manager.
It comes from import org.slf4j.LoggerFactory;
. I have not included any logging libraries. I think it uses quarkus logging implementation.
I can see the other classes(which are annotated with @ApplicationScoped) in the GUI list which also uses same loggingFactory and everything works great with them.
This is in both DevMode and UberJar.
from quarkus-logging-manager.
Another observation is that when running in dev mode, there are both individual classes and also packages options to modify the logging level which is nice because we can change logging level for all the classes in a package with single change. But in when built with uber-jar, there are only classes and no packages. Is there anyway to include packages also in that list ?
from quarkus-logging-manager.
I am not sure where slf4j comes from, but I do not think it's Quarkus. Try using the JBoss Logger (that comes from Quarkus)
from quarkus-logging-manager.
Hi, I have used the jboss logger still the same. :(
Its a plain simple class which is being initialized during server startup.
Trying to figure out the reason for not being listed.
from quarkus-logging-manager.
Not sure, please can you share a reproducer project, then I can look at it
from quarkus-logging-manager.
Hi, Please find an example:
https://github.com/rreddy13Official/logging-manager-example
There are two classes SimpleClass.java and SimpleApplicationScopedClass.java
When accessed GUI, I could not find SimpleClass.java which is being initialized during startup in ApplicationLifeCycleBean.java
Please let me know for more info.
from quarkus-logging-manager.
ok. Thanks for the info. Pls let us know if you find anything.
from quarkus-logging-manager.
This is fixed in quarkus, and will be in the next minor version (2.1.0) of logging manager (waiting for the fix to be available in quarkus)
from quarkus-logging-manager.
Related Issues (20)
- How to customize package hierarchy displayed in "Log Levels" window HOT 1
- Startup Error during tests HOT 4
- logging-manager-ui not working in native-image build on linux x86 HOT 12
- Click on top left icon yields NOT_FOUND instead of navigating back to Dev UI overview HOT 2
- Dev UI fails to load with this extension if using Quarkus 2.6.1 HOT 6
- Add docs module
- oom on build HOT 4
- quarkus.logging-manager.history-size config not working HOT 3
- Migrate to the new Dev UI
- Authentication with bearer token HOT 7
- Can't build Quarkus core 3.1.0.Final with latest quarkus-logging-manager HOT 3
- Provide option to expose endpoints on different port HOT 4
- Endpoints are not found when the application is build HOT 2
- version 3.0.0 no longer works because of missing javascript files HOT 11
- Unable to build due to missing mvnpm dependency HOT 1
- NullPointer when setting logger level to null HOT 2
- open-api warnings HOT 3
- Logging manager UI is not working in native image mode HOT 6
- Upgrade to use latest Quarkus
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 quarkus-logging-manager.