Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Log output change after migrating from Scout 22 to 23.2(Log output has chaged after migration from Scout 22 to Scout 23.2)
Log output change after migrating from Scout 22 to 23.2 [message #1862700] Thu, 21 December 2023 13:33 Go to next message
Seydou Zakou is currently offline Seydou ZakouFriend
Messages: 44
Registered: May 2020
Member
Migrating from Scout 22 to Scout 23.2, I have encounterd some issues (tested in Eclipse and Intelij IDEA CE):
- Log output on console are not on new line for each entry and format has changed (no change has beeen made to logback.xml files), see example output below when line wrap is enabled in console
2023-12-21 13:15:33,173 INFO  [main] org.eclipse.scout.rt.platform.config.ConfigPropertyProvider.parse\(ConfigPropertyProvider.java:115\2023-12-21 13:15:33,190 INFO  [scout-platform-starter] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateHeadless\(PlatformImplementor.java:174\2023-12-21 13:15:33,194 INFO  [scout-platform-starter] org.eclipse.scout.rt.platform.inventory.ClassInventory.<clinit>\(ClassInventory.java:37\2023-12-21 13:15:33,230 INFO  [ForkJoinPool.commonPool-worker-13] org.eclipse.scout.rt.platform.inventory.internal.JandexInventoryBuilder.scanFolder\(JandexInventoryBuilder.java:180\2023-12-21 13:15:33,258 INFO  [ForkJoinPool.commonPool-worker-5] org.eclipse.scout.rt.platform.inventory.internal.JandexInventoryBuilder.scanFolder\(JandexInventoryBuilder.java:180\2023-12-21 13:15:33,414 INFO  [scout-platform-starter] org.eclipse.scout.rt.platform.inventory.ClassInventory.<clinit>\(ClassInventory.java:43\2023-12-21 13:15:33,599 INFO  [scout-platform-starter] org.eclipse.scout.rt.platform.internal.PlatformImplementor.createBeanManager\(PlatformImplementor.java:221\2023-12-21 13:15:33,595 WARN  [ForkJoinPool.commonPool-worker-3] org.eclipse.scout.rt.platform.internal.BeanFilter.collectWithSubClasses\(BeanFilter.java:75\2023-12-21 13:15:33,643 INFO  [scout-platform-starter] org.eclipse.scout.rt.platform.internal.PlatformImplementor.createBeanManager\(PlatformImplementor.java:226\2023-12-21 13:15:33,649 INFO


- There is no Dump of running SQL query in log output

- The famous links to access the application after the start finished in not seeing anymore

Is there any config I have missing ?

Thanks in advance
Re: Log output change after migrating from Scout 22 to 23.2 [message #1862722 is a reply to message #1862700] Fri, 22 December 2023 10:26 Go to previous messageGo to next message
Beat Schwarzentrub is currently offline Beat SchwarzentrubFriend
Messages: 207
Registered: November 2010
Senior Member
I'm not sure if the output you pasted was corrupted by the forum software, but if your output really looks like this, something is definitively wrong. I see backslash characters in strange places, and the log lines seem to stop right after the class and line number.

I recommend that you to check the content of your logback.xml, maybe it got messed up (VCS conflict?). You should also make sure that the file encoding is set correctly (UTF-8). If this does not help, you can try adding debug="true" to the <configuration> element, which enables the output of some debug information about the logback initialization process. Or simply delete the logback.xml file. The format will then be wrong, but at least you should see individual lines with the proper messages. If it still looks wrong, maybe your console is broken. Are you running some kind of plugin that interferes with the console output (filtering, coloring etc.)?

Beat
Re: Log output change after migrating from Scout 22 to 23.2 [message #1862724 is a reply to message #1862722] Fri, 22 December 2023 12:20 Go to previous messageGo to next message
Claudio Guglielmo is currently offline Claudio GuglielmoFriend
Messages: 258
Registered: March 2010
Senior Member
From 22 to 23 the logging was adjusted and the logback.xml needs to be updated. I don't know exactly what the changes were, it looks like they did not make it into the migration guide unfortunately.

However, you should adopt the changes by either creating a new Scout project and compare the generated logback.xml with yours. Or compare it to the version in our git repository: https://github.com/eclipse-scout/scout.rt/blob/releases/23.2/scout-helloworld-app/src/main/resources/archetype-resources/__rootArtifactId__.server.app.dev/src/main/resources/logback.xml
Re: Log output change after migrating from Scout 22 to 23.2 [message #1862727 is a reply to message #1862724] Fri, 22 December 2023 17:22 Go to previous message
Seydou Zakou is currently offline Seydou ZakouFriend
Messages: 44
Registered: May 2020
Member
The problem was with the logback.xml files that are using a new Java class for the <encoder> element instead of variable in XML config file. All is OK using the file pointed by @Claudio.

Thank you all.
Previous Topic:Template proposal
Next Topic:MSSQL Integration
Goto Forum:
  


Current Time: Sat May 18 07:12:05 GMT 2024

Powered by FUDForum. Page generated in 0.03585 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top