Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
8 replies
Subscribers
5 subscribers
Views
3024 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Appian version 7.11 + JBoss + MySQL. For a custom plugin file, I am
mohammads
Certified Senior Developer
over 9 years ago
Appian version 7.11 + JBoss + MySQL.
For a custom plugin file, I am trying to write logs to a custom log file.
In appian_log4j.properties (available under <Appian_Home>\\ear\\suite.ear\\resources) file, I have added following entries:
####### Custom Plugin Loggers
log4j.logger.com.pblue=DEBUG, CUSTOM_LOG
###### CUSTOM_LOG file appender
log4j.appender.CUSTOM_LOG=org.apache.log4j.RollingFileAppender
log4j.appender.CUSTOM_LOG.layout=org.apache.log4j.PatternLayout
log4j.appender.CUSTOM_LOG.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
log4j.appender.CUSTOM_LOG.File=${AE_LOGS}/customLog.log
log4j.appender.CUSTOM_LOG.MaxFileSize=10MB
log4j.appender.CUSTOM_LOG.MaxBackupIndex=1000
log4j.appender.CUSTOM_LOG.encoding=UTF-8
I don't see my logs messages in the customLog.log file, though I see below warning message on JBoss console ::
==============
12:37:31,263 INFO [stdout] (http-/0.0.0.0:8080-1) -----------
12:37:31,266 ERROR [st...
appian_log4j.properties
OriginalPostID-188341
OriginalPostID-188341
Discussion posts and replies are publicly visible
0
mohammads
Certified Senior Developer
over 9 years ago
...derr] (http-/0.0.0.0:8080-1) log4j:WARN No appenders could be found for logger (com.pblue.
bengine.TableWithData)
==============
Could someone point to what am I missing?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mohammads
Certified Senior Developer
over 9 years ago
I don't see my logs messages in the customLog.log file, though I see below warning message on JBoss console ::
==============
12:37:31,263 INFO [stdout] (http-/0.0.0.0:8080-1) -----------
12:37:31,266 ERROR [stderr] (http-/0.0.0.0:8080-1) log4j:WARN No appenders could be found for logger (com.pblue.
bengine.TableWithData)
==============
Could someone point to what am I missing? Attached appian_log4j.properties file
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mohammads
Certified Senior Developer
over 9 years ago
I already went thru below link and did exactly , but not luck ::
forum.appian.com/.../Customizing_Application_Logging.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Ricardo Galvan
Appian Employee
over 9 years ago
The additional logging will not appear on a new file, it will be included in your application-server.log as mentioned here:
forum.appian.com/.../Appian_Plug-ins.html
In the plugin, you need to include the log4j library from suite.ear/lib in the build path of the project and add the classes on appian_log4j.properties
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mohammads
Certified Senior Developer
over 9 years ago
Thanks Ricordo, I have already added log4j liberary in build path.
This was working on Appian7.8 version and custom logger was going in custom log file.
Refer another post by "Deepti Parikh" on below link :
forum.appian.com/.../custom_log
Can you advise ?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rolandc
over 9 years ago
We are using 7.11 and I was able to use what you provide to write the CustomLog.log in one of our lower environments using one of the plugins we wrote. Has the plugin recently changed?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mohammads
Certified Senior Developer
over 9 years ago
Nothing major we changed. Just added few log message then I noticed that custom logs are not going in custom.log file in 7.11.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rolandc
over 9 years ago
Other than following the steps mentioned in the other custom log posting you pointed, I cannot really think of much that would prevent it.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel