gudii9
asked on
console vs log file
Hi,
I have my web ejb application on local websphere server on my RAD IDE. When i hit the webservice from SOAP UI sometimes my console is getting updated with error kind of message like parse error etc. Sometimes instead of console log file getting updated. I wonder when console when log files gets updated. I have updated log file through log 4j but the name seems wrong and took long time to figure out the log file location. How do i rename log file location. Any link explaing these things in detail. please advise
I have my web ejb application on local websphere server on my RAD IDE. When i hit the webservice from SOAP UI sometimes my console is getting updated with error kind of message like parse error etc. Sometimes instead of console log file getting updated. I wonder when console when log files gets updated. I have updated log file through log 4j but the name seems wrong and took long time to figure out the log file location. How do i rename log file location. Any link explaing these things in detail. please advise
have a look in your log4j.properties or log4j.xml for the log file location
ASKER
when does console updated within RAD itself?
when does log file alone updated?
when does both RAD console and log file both updated?
please advise
when does log file alone updated?
when does both RAD console and log file both updated?
please advise
all depends on what you got in your log4j config file
ASKER
control shift R and search on log4j.xml in rad is not showing any proper results. Showing some jar files and all not xml file?
Please advise
Please advise
Is this your code or someone elses?
ASKER
my code only
Then surely you know where your log4j confiiguration file is???????
ASKER
when i search in RAD using Control Shift R log4j.xml it wont find in RAd though?
I do not remember where it is.
I do not remember where it is.
I do not remember where it is.you're not being serious are you?
As a developer surely you would know where your log4j config sits. You are the one who created it.
Do you remember creating it? What did it use, XML or properties?
ASKER
i think i created using websphere admin console and gave paths. Problem is i am creating lot of workspaces and also i have to re image whole RAD recently.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
any good link or resource explaining above both two (server level and source tree level) configuring of log4j approaches. Is it is same irrespective of app server or does it changes with each environment and app server?
I am not very clear on this. Please advise
I am not very clear on this. Please advise
Every app server has its own way of configuring logging.
I don't know of any links sorry.
The server will always take precedence over application level log4j config.
You need to read the websphere documentation about logging configuration for console vs file.
I don't know of any links sorry.
The server will always take precedence over application level log4j config.
You need to read the websphere documentation about logging configuration for console vs file.
ASKER
https://docs.oracle.com/javase/8/docs/technotes/guides/deploy/console_trace_log.html
i was reading above link. Looks that is different which talks about tracing
i was reading above link. Looks that is different which talks about tracing
guddi9 you are going off on a tangent now.
Your question is about logging on Websphere application server.
You will need to configure it within websphere.
Your question is about logging on Websphere application server.
You will need to configure it within websphere.
ASKER
sure. i will open new question on tracing etc