[
https://issues.apache.org/jira/browse/NETBEANS-4455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Javus updated NETBEANS-4455:
----------------------------
Description:
All logging messages in the NetBeans console from the GlassFish server are
cropped.
Steps to reproduce:
1) Download and extract GlassFish server 5.1
2) Install slf4j + logback like in the link described
(https://stackoverflow.com/a/20607837 ):
2.1) Copy jul-to-slf4j-1.7.5, slf4j-api-1.7.5, logback-core-1.0.13,
logback-classic-1.0.13 to $GF_INSTALL/glassfish/lib/endorsed
2.2) Create logback.xml in $GF_INSTALL/glassfish/domains/domain1/config
2.3) Modify $GF_INSTALL/glassfish/domains/domain1/config/logging.properties
2.4) Edit $GF_INSTALL/glassfish/domains/domain1/config/domain.xml apropriately
3) Add a separate ConsoleAppender in logback.xml so that logging is done
redundantly in the file and in console
4) Start NetBeans
4.1) Add (newly extracted) server
5) Start server
Result: The GlassFish default logging messages at start of a server (i. e.
"Created virtual server") are not displayed in the NetBeans output window. But
they are displayed in the configured file.
Further observation: If a logging message contains a linkebreak (\n), oddly
enough everything after the first linebreak is displayed in the NetBeans
console.
I originally thought of a bug in slf4j, logback, glassfish or a combination of
them. I tried with different versions of slf4j, logback and GlassFish server,
all the same results.
If I start NetBeans 11.0 with the same GlassFish server it works as a charm.
Expected result: Logging messages should fully display in NetBeans console.
was:
All logging messages in the NetBeans console from the GlassFish server are
cropped.
Steps to reproduce:
1) Extract GlassFish server 5.1
2) Install slf4j + logback like in the link described
(https://stackoverflow.com/a/20607837 ):
2.1) Copy jul-to-slf4j-1.7.5, slf4j-api-1.7.5, logback-core-1.0.13,
logback-classic-1.0.13 to $GF_INSTALL/glassfish/lib/endorsed
2.2) Create logback.xml in $GF_INSTALL/glassfish/domains/domain1/config
2.3) Modify $GF_INSTALL/glassfish/domains/domain1/config/logging.properties
2.4) Edit $GF_INSTALL/glassfish/domains/domain1/config/domain.xml apropriately
3) Add a separate ConsoleAppender in logback.xml so that logging is done
redundantly in the file and in console
4) Start NetBeans
4.1) Add (newly extracted) server
5) Start server
Result: The GlassFish default logging messages at start of a server (i. e.
"Created virtual server") are not displayed in the NetBeans output window. But
they are displayed in the configured file.
Further observation: If a logging message contains a linkebreak (\n), oddly
enough everything after the first linebreak is displayed in the NetBeans
console.
I originally thought of a bug in slf4j, logback, glassfish or a combination of
them. I tried with different versions of slf4j, logback and GlassFish server,
all the same results.
If I start NetBeans 11.0 with the same GlassFish server it works as a charm.
Expected result: Logging messages should fully display in NetBeans console.
> Cropped console output with GlassFish + slf4j + logback
> -------------------------------------------------------
>
> Key: NETBEANS-4455
> URL: https://issues.apache.org/jira/browse/NETBEANS-4455
> Project: NetBeans
> Issue Type: Bug
> Components: ide - Logger
> Affects Versions: 12.0, 11.1, 11.2, 11.3
> Environment: NetBeans runs on Java 1.8.144
> Windows 7 OS
> Reporter: Javus
> Priority: Minor
>
> All logging messages in the NetBeans console from the GlassFish server are
> cropped.
> Steps to reproduce:
> 1) Download and extract GlassFish server 5.1
> 2) Install slf4j + logback like in the link described
> (https://stackoverflow.com/a/20607837 ):
> 2.1) Copy jul-to-slf4j-1.7.5, slf4j-api-1.7.5, logback-core-1.0.13,
> logback-classic-1.0.13 to $GF_INSTALL/glassfish/lib/endorsed
> 2.2) Create logback.xml in $GF_INSTALL/glassfish/domains/domain1/config
> 2.3) Modify $GF_INSTALL/glassfish/domains/domain1/config/logging.properties
> 2.4) Edit $GF_INSTALL/glassfish/domains/domain1/config/domain.xml apropriately
> 3) Add a separate ConsoleAppender in logback.xml so that logging is done
> redundantly in the file and in console
> 4) Start NetBeans
> 4.1) Add (newly extracted) server
> 5) Start server
> Result: The GlassFish default logging messages at start of a server (i. e.
> "Created virtual server") are not displayed in the NetBeans output window.
> But they are displayed in the configured file.
> Further observation: If a logging message contains a linkebreak (\n), oddly
> enough everything after the first linebreak is displayed in the NetBeans
> console.
> I originally thought of a bug in slf4j, logback, glassfish or a combination
> of them. I tried with different versions of slf4j, logback and GlassFish
> server, all the same results.
> If I start NetBeans 11.0 with the same GlassFish server it works as a charm.
> Expected result: Logging messages should fully display in NetBeans console.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists