Comments (11)
I won't be able to produce a PR for this, the diff was just a FYI.
from quarkus-logging-manager.
What version of Quarkus are you using ?
from quarkus-logging-manager.
3.2.3.Final
from quarkus-logging-manager.
Ok, it will not work with latest, but we can fix that. Are you using the ui ? Or the REST endpoints ?
from quarkus-logging-manager.
the web ui
from quarkus-logging-manager.
Hi. it seems with the new dev ui, the javascript and css files are moved or perhaps no longer there. They are still available via the "q/dev-v1" URL, but this is of cource now deprecated. Still, the following diff got the extension working for me in the meantime:
diff --git deployment/src/main/java/io/quarkiverse/loggingmanager/deployment/LoggingManagerProcessor.java deployment/src/main/java/io/quarkiverse/loggingmanager/deployment/LoggingManagerProcessor.java
index 83a9647..fc5d648 100644
--- deployment/src/main/java/io/quarkiverse/loggingmanager/deployment/LoggingManagerProcessor.java
+++ deployment/src/main/java/io/quarkiverse/loggingmanager/deployment/LoggingManagerProcessor.java
@@ -161,7 +161,7 @@ class LoggingManagerProcessor {
Files.createFile(indexHtml);
}
String indexHtmlContent = getIndexHtmlContents(nonApplicationRootPathBuildItem.getNonApplicationRootPath(),
- "/dev/logstream");
+ "/dev-v1/logstream");
Files.write(indexHtml, indexHtmlContent.getBytes());
@@ -187,7 +187,7 @@ class LoggingManagerProcessor {
String indexHtmlContent = getIndexHtmlContents(nonApplicationRootPathBuildItem.getNonApplicationRootPath(),
"/" + loggingManagerConfig.basePath + "/logstream");
// Update the resource Url to be relative
- String pathToBeReplaced = nonApplicationRootPathBuildItem.resolvePath("dev/resources");
+ String pathToBeReplaced = nonApplicationRootPathBuildItem.resolvePath("dev-v1/resources");
indexHtmlContent = indexHtmlContent.replaceAll(pathToBeReplaced + "/", "");
String indexHtmlFileName = UI_FINAL_DESTINATION + "/" + INDEX_HTML;
generatedResourceProducer.produce(new GeneratedResourceBuildItem(indexHtmlFileName, indexHtmlContent.getBytes()));
@@ -305,7 +305,7 @@ class LoggingManagerProcessor {
cleanFrameworkRootPath(nonApplicationRootPath));
indexHtmlContent = indexHtmlContent.replaceAll("\\{devRootAppend}",
- cleanFrameworkRootPath(nonApplicationRootPath) + "/dev");
+ cleanFrameworkRootPath(nonApplicationRootPath) + "/dev-v1");
indexHtmlContent = indexHtmlContent.replaceAll("\\{streamingPath}",
streamingPath);
diff --git deployment/src/main/resources/META-INF/resources/template/loggermanager.html deployment/src/main/resources/META-INF/resources/template/loggermanager.html
index 4bd21d0..41d64b2 100644
--- deployment/src/main/resources/META-INF/resources/template/loggermanager.html
+++ deployment/src/main/resources/META-INF/resources/template/loggermanager.html
@@ -6,11 +6,11 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
- <link rel="stylesheet" href="{frameworkRootPath}/dev/resources/css/bootstrap.min.css">
- <link rel="stylesheet" href="{frameworkRootPath}/dev/resources/fontawesome/css/all.min.css">
- <link rel="stylesheet" href="{frameworkRootPath}/dev/resources/css/logstream.css">
+ <link rel="stylesheet" href="{frameworkRootPath}/dev-v1/resources/css/bootstrap.min.css">
+ <link rel="stylesheet" href="{frameworkRootPath}/dev-v1/resources/fontawesome/css/all.min.css">
+ <link rel="stylesheet" href="{frameworkRootPath}/dev-v1/resources/css/logstream.css">
- <link rel="shortcut icon" type="image/png" href="{frameworkRootPath}/dev/resources/images/favicon.ico" >
+ <link rel="shortcut icon" type="image/png" href="{frameworkRootPath}/dev-v1/resources/images/favicon.ico" >
<title>Logging manager | {applicationName} {applicationVersion}</title>
@@ -52,9 +52,9 @@
{logContent}
{modalsContent}
- <script src="{frameworkRootPath}/dev/resources/js/jquery.min.js"></script>
- <script src="{frameworkRootPath}/dev/resources/js/bootstrap.bundle.min.js"></script>
- <script src="{frameworkRootPath}/dev/resources/js/logstream.js"
+ <script src="{frameworkRootPath}/dev-v1/resources/js/jquery.min.js"></script>
+ <script src="{frameworkRootPath}/dev-v1/resources/js/bootstrap.bundle.min.js"></script>
+ <script src="{frameworkRootPath}/dev-v1/resources/js/logstream.js"
data-frameworkRootPath="{frameworkRootPath}"
data-showOnStart="true"
data-streamingPath="{streamingPath}">
from quarkus-logging-manager.
may be a bugfix release would be useful...
from quarkus-logging-manager.
and probably a now so hardcoded path would be even better. eg: put into a constant...
from quarkus-logging-manager.
Do you want to do a PR with your diff?
from quarkus-logging-manager.
i don't know the codebase what's more don't know what's not working now...
i'm just see the above diff and normally i use not allow such code into our codebase...it's against some basic clean coding guideline...
from quarkus-logging-manager.
We can do a bugfix for the current 3.x, but the next 3.x the old dev ui will be removed. Then we need a big fix here.
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
- Unable to build due to missing mvnpm dependency HOT 1
- NullPointer when setting logger level to null HOT 2
- open-api warnings HOT 3
- How to include quarkus-logging-manager in uberJar so it is available to modify logging level during run time HOT 18
- 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.