Overhead in weblogic logging
Does anyone have an info on the performance overhead of logging within
weblogic (6.1 sp2). There doesn't seem to be a way to turn down the
logging to weblogic.log from info to something like error or warning
level. I thought the StdoutSeverityLevel parameter would do that but it
only controls what is written to standard out not the weblogic.log.
Also, should the access log be enabled in production systems? Since it
writes a line to the log for every http hit, I was wondering what kind
of performance overhead that might make.
Kirk
FYI: The LogToStdOut option only applies to the console output, not the
weblogic.log file.
Nils
Pamal wrote:
>
Hi,
You can turn off complete logging by unchecking the Log to Stdout in WebLogic
administration console. Or the same can be achieved by giving the following in
config.xml
<WebServer DefaultWebApp=""
LogFileName="./config/petstore/logs/access.log"
LoggingEnabled="false" Name=""/>
You can also set the level of logging to Info, Debug etc
Regards,
Pamal
Rob Woollen <[email protected]> wrote:
I don't believe there's any current way to limit what gets written to
the
weblogic.log.
Writes to the access.log are buffered internally in the server so their
performance impact shouldn't be too big.
FWIW, I'd recommend that you run performance tests on your application
first and
then consider turning off logging only if it has a significant impact.
-- Rob
Kirk Everett wrote:
I totally agree and was only thinking about doing this in a productionenv. I
just wanted to know if you could (or should) turn off the access.logand the
weblogic.log. Is there even a way to turn down what gets put in the
weblogic.log?
Kirk
Cameron Purdy wrote:
Logging can be expensive, but only consider this once you have a
stable
application. Usually the application-level (not server-level) loggingis the
prime culprit, and you can reduce this with clever use of the deletekey in
source code files. You can also redirect stdout and stderr to nuland you
can turn off logging options once you are sure that things are stable.
Peace,
Cameron Purdy
Tangosol, Inc.
Clustering Weblogic? You're either using Coherence, or you shouldbe!
Download a Tangosol Coherence eval today at http://www.tangosol.com/
"Kirk Everett" <[email protected]> wrote in message
news:[email protected]...
Does anyone have an info on the performance overhead of logging
within
weblogic (6.1 sp2). There doesn't seem to be a way to turn downthe
logging to weblogic.log from info to something like error or warning
level. I thought the StdoutSeverityLevel parameter would do thatbut it
only controls what is written to standard out not the weblogic.log.
Also, should the access log be enabled in production systems? Sinceit
writes a line to the log for every http hit, I was wondering whatkind
of performance overhead that might make.
Kirk
============================
[email protected]
Similar Messages
-
What is the overhead of Supplemental Logging?
We would like to copy data from a 600 GB Oracle database (9i) to a separate database for reporting. We want to use Data Guard in Logical Standby mode. The source database is heavily used and we can't afford a significant increase in system load (e.g. I/O activity) on that system.
To set up a Logical Standby, we need to put the JD Edwards database into Supplemental Logging mode. I am concerned that this will noticibly increase the load on the source server.
Has anyone analyzed the additional overhead of Supplemental Logging?
I have done some testing using Oracle 10.2 (Oracle XE on my computer) which indicates that when I turn on Supplemental Logging, the size of the archive logs grows by 40%. I have not yet tested this on our 9i database.
Thank you in advance for your help!
Best Regards,
Mike
=================================
The code below demonstrates the symptoms mentioned above:
RESULTS - size of archive logs generated:
- With Supplemental Logging: 120 MB
- Without: 80 MB
=================================
CREATE TABLE "EMP"
( "EMPLOYEE_ID" NUMBER(6,0),
"FIRST_NAME" VARCHAR2(20),
"LAST_NAME" VARCHAR2(25) NOT NULL ENABLE,
"EMAIL" VARCHAR2(25) NOT NULL ENABLE,
"PHONE_NUMBER" VARCHAR2(20),
"HIRE_DATE" DATE NOT NULL ENABLE,
"JOB_ID" VARCHAR2(10) NOT NULL ENABLE,
"SALARY" NUMBER(8,2),
"COMMISSION_PCT" NUMBER(2,2),
"MANAGER_ID" NUMBER(6,0),
"DEPARTMENT_ID" NUMBER(4,0)
alter table emp add CONSTRAINT "EMP_EMP_ID_PK" PRIMARY KEY ("EMPLOYEE_ID")
CREATE TABLE "STAT"
( "F1" NUMBER,
"ID" VARCHAR2(10)
The "employee" table is from Oracle XE samples
The procedure below generates transactions to test archive log size.
To run, put the database in archive log mode. Then pop an archive log by executing
ALTER SYSTEM ARCHIVE LOG CURRENT;
To flip between running with Supplemental Logging, use one of:
ALTER DATABASE drop SUPPLEMENTAL LOG DATA (PRIMARY KEY, UNIQUE INDEX) COLUMNS;
ALTER DATABASE ADD SUPPLEMENTAL LOG DATA (PRIMARY KEY, UNIQUE INDEX) COLUMNS;
declare
i number;
begin
i := 0;
while i < 1000
loop
delete from emp;
insert into emp select * from employees;
update emp set COMMISSION_PCT = COMMISSION_PCT * .5;
update stat set f1 = i where id = 'UPD';
commit;
if i mod 1000 = 0 then
dbms_output.put_line(i);
end if;
i := i + 1;
end loop;
end;
/***********************************************/Unless the bottleneck of your system is related in any way to the redo log files, I don't see any risk in generating supplemental logging. A good way to find out is to look at a Statspack report, and see which events are the top 5 time-wise.
Daniel -
How to write to weblogic.log from JSP ?
It is possible to write some messages to weblogic.log from JSP?
Use weblogic.logging.LogOutputStream class to log messages into
weblogic.log file.
javap on weblogic.logging.LogOutputStream
for e.g
<%@ page import="weblogic.logging.*" %>
<%
LogOutputStream los = new LogOutputStream("TEST");
los.error("Writing into Log file");
%>
Hope this helps.
--kumar allamraju
Mikhail Ershov wrote:
> It is possible to write some messages to weblogic.log from JSP?
-
Error in weblogic.log using weblogic 6.1
I have this error in my weblogic.log file. I do not know the reason for the
error. What is the error about?
####<Oct 7, 2002 1:23:34 PM PDT> <Error> <Management> <hewlett-yf9yyzb>
<myserver> <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'>
<system> <> <140001> <Error getting attribute EJBName.MethodName on MBean
mydomain:Application=test,AssemblyDescriptor=AssemblyDescriptor-4,ContainerT
ransaction=ContainerTransaction-4,EJBComponent=sempire_bc,EJBDescriptor=EJBD
escriptor-4,EJBJar=EJBJar-9,Location=myserver,Name=Method-12,Type=Method.
Method: null>
javax.management.AttributeNotFoundException: EJBName.MethodName
at
weblogic.management.internal.DynamicMBeanImpl.getXAttributeInfo(DynamicMBean
Impl.java:1643)
at
weblogic.management.internal.DynamicMBeanImpl.getAttribute(DynamicMBeanImpl.
java:502)
at
weblogic.management.internal.DynamicMBeanImpl.getAttribute(DynamicMBeanImpl.
java:477)
at
com.sun.management.jmx.MBeanServerImpl.getAttribute(MBeanServerImpl.java:118
3)
at
com.sun.management.jmx.MBeanServerImpl.getAttribute(MBeanServerImpl.java:115
3)
at
weblogic.management.internal.MBeanProxy.getOneAttribute(MBeanProxy.java:283)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:199)
at $Proxy77.getAttribute(Unknown Source)
at
weblogic.management.console.utils.MBeans.getDisplayNameFor(MBeans.java:705)
at
weblogic.management.console.utils.ConsoleComparator.compare(ConsoleComparato
r.java:83)
at java.util.Arrays.mergeSort(Arrays.java:1176)
at java.util.Arrays.sort(Arrays.java:1123)
at java.util.Collections.sort(Collections.java:116)
at weblogic.management.console.utils.MBeans.sort(MBeans.java:1101)
at
weblogic.management.console.tags.DeclareBeanSetTag.doStartTag(DeclareBeanSet
Tag.java:96)
at
weblogic.management.console.webapp._ejb._ejb20.__nav._jspService(__nav.java:
4606)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
l.java:482)
at
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
l.java:308)
at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:116)
at
weblogic.management.console.webapp._ejb.__nav._jspService(__nav.java:177)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:242)
at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:112)
at
weblogic.management.console.actions.ForwardAction.perform(ForwardAction.java
:35)
at
weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
rvlet.java:171)
at
weblogic.management.console.actions.internal.ActionServlet.doGet(ActionServl
et.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2546)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2260)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Ronak ParekhIt looks like an error/bug in the deployment descriptor editor in the
console.
-- Rob
Ronak Parekh wrote:
I have this error in my weblogic.log file. I do not know the reason for the
error. What is the error about?
####<Oct 7, 2002 1:23:34 PM PDT> <Error> <Management> <hewlett-yf9yyzb>
<myserver> <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'>
<system> <> <140001> <Error getting attribute EJBName.MethodName on MBean
mydomain:Application=test,AssemblyDescriptor=AssemblyDescriptor-4,ContainerT
ransaction=ContainerTransaction-4,EJBComponent=sempire_bc,EJBDescriptor=EJBD
escriptor-4,EJBJar=EJBJar-9,Location=myserver,Name=Method-12,Type=Method.
Method: null>
javax.management.AttributeNotFoundException: EJBName.MethodName
at
weblogic.management.internal.DynamicMBeanImpl.getXAttributeInfo(DynamicMBean
Impl.java:1643)
at
weblogic.management.internal.DynamicMBeanImpl.getAttribute(DynamicMBeanImpl.
java:502)
at
weblogic.management.internal.DynamicMBeanImpl.getAttribute(DynamicMBeanImpl.
java:477)
at
com.sun.management.jmx.MBeanServerImpl.getAttribute(MBeanServerImpl.java:118
3)
at
com.sun.management.jmx.MBeanServerImpl.getAttribute(MBeanServerImpl.java:115
3)
at
weblogic.management.internal.MBeanProxy.getOneAttribute(MBeanProxy.java:283)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:199)
at $Proxy77.getAttribute(Unknown Source)
at
weblogic.management.console.utils.MBeans.getDisplayNameFor(MBeans.java:705)
at
weblogic.management.console.utils.ConsoleComparator.compare(ConsoleComparato
r.java:83)
at java.util.Arrays.mergeSort(Arrays.java:1176)
at java.util.Arrays.sort(Arrays.java:1123)
at java.util.Collections.sort(Collections.java:116)
at weblogic.management.console.utils.MBeans.sort(MBeans.java:1101)
at
weblogic.management.console.tags.DeclareBeanSetTag.doStartTag(DeclareBeanSet
Tag.java:96)
at
weblogic.management.console.webapp._ejb._ejb20.__nav._jspService(__nav.java:
4606)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
l.java:482)
at
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
l.java:308)
at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:116)
at
weblogic.management.console.webapp._ejb.__nav._jspService(__nav.java:177)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:242)
at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:112)
at
weblogic.management.console.actions.ForwardAction.perform(ForwardAction.java
:35)
at
weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
rvlet.java:171)
at
weblogic.management.console.actions.internal.ActionServlet.doGet(ActionServl
et.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2546)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2260)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Ronak Parekh -
Providing developers with access to WebLogic logs
Hi all,
I keep getting asked by developers for access to WebLogic logs in restricted test environments. But due to security policies, I can't just create an account for them. In one of my previous roles we just gave developers access to a WeLogic monitor account (read-only), but I find the WebLogic admin console is not user friendly for viewing logs.
To overcome this, I created a really simple WebLogic app that lets the developers access all logs files on the managed servers.
I've blogged a quick how-to here for anyone interested in doing the same: [http://connectionserver.blogspot.com/2009/05/listing-directories-simple-weblogic.html|http://connectionserver.blogspot.com/2009/05/listing-directories-simple-weblogic.html]
Hope it helps someone :)
P.S. Perhaps someone could modify it to restrict access to certain roles.
-Mr Jones.You may run into incompatible class versions issue. Basically you have altogehter 2 different JVMs. One for EJBs (utility framework as you defiined using 1.3). Another JVM is weblogic server using JDK 1.6 where you have Client to remotely access those EJBs methods. Going back, when you generate the client stubs and skeletons, and refer them on your client side, did you ran into any issues like with incompatible class versions.
Goud -
How to view weblogic log files from a browser
Hi,
I am running WebLogic Server 7.03 on Solaris 8.
I have one Admin and multiple Managed servers running.
Each creates its own log file.
Is there anyway I can access this log files from the browser ?
In Apache, you can create a link from htdocs dir to the logs dir
and then view the log files from the browser. Is there a similar
mechanism in Weblogic server.
A quick response is well appreciated.
Thanks in advance.
-Anil VarmaIf you are on a unix system you can do something similar by making an open
directory webapp with symbolic links to the weblogic log directories. I suggest
that you protect that webapp with administration access only.
Sam
Anil Varma wrote:
Hi,
I am running WebLogic Server 7.03 on Solaris 8.
I have one Admin and multiple Managed servers running.
Each creates its own log file.
Is there anyway I can access this log files from the browser ?
In Apache, you can create a link from htdocs dir to the logs dir
and then view the log files from the browser. Is there a similar
mechanism in Weblogic server.
A quick response is well appreciated.
Thanks in advance.
-Anil Varma -
How to use weblogic.logging classes in 6.0
Hi,
We developed a number of logging classes under 5.1. One used
weblogic.logging.LogOutputStream to write messages out to the log. This
code no longer works under WLS 6.0. Everything compiles and runs but I
don't see any of our messages in any of the log files. Judging from the 6.0
JavaDoc, it looks like LogOutputStream is no longer supported. So I
switched over to using NonCatalogLogger. Same results - no output in the
logs.
What am I missing?
Thanks.
-brianMy coding error. weblogic.logging.* classes work just fine in 6.0 (he said
sheepishly)!
-b
"Brian J. Levine" <[email protected]> wrote in message
news:[email protected]..
Hi,
We developed a number of logging classes under 5.1. One used
weblogic.logging.LogOutputStream to write messages out to the log. This
code no longer works under WLS 6.0. Everything compiles and runs but I
don't see any of our messages in any of the log files. Judging from the6.0
JavaDoc, it looks like LogOutputStream is no longer supported. So I
switched over to using NonCatalogLogger. Same results - no output in the
logs.
What am I missing?
Thanks.
-brian -
Unwanted stack trace in weblogic.log for thrown JSP Exceptions
We are throwing a JSP exception within a custom tag when data validation
errors occur; the errorPage for the JSP page is then invoked to show the
appropriate errors. However, in the weblogic.log, a stack trace is shown
indicating the exception (example below). We do not want this stack track
shown unless there is a real "error" in our system vs. invoking the
errorPage to show "application" errors. Is there any way to supress this,
as we are not explicitly causing this to happen. It appears to be a
weblogic feature. This causes us problems in finding true system errors
that might be occurring due to these non-problems showing up in the
weblogic.log.
Thanks for the help.
John Bauer
Wed Dec 20 15:34:49 EST 2000:<E> <ServletContext-General> exception raised
on '/test/test.jsp'
javax.servlet.ServletException: runtime failure in custom tag 'testtag'
at jsp_servlet._test._test._jspService(_test.java:89)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:124)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:
60)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:
07)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager
java:251)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:369)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:269)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
Code)
The design of the data entry pages is such that the error page is the same
page as the data entry page, and a validation JSP tag validates the data and
if it finds a problem, it will set some variables and throw a JSP exception
to redisplay the page. Unfortunately, we are forced to live with this
design. Are you aware of any mechanism to suppress the automatic logging of
thrown JSP exceptions in the weblogic log?
Thanks,
JDB
Cameron Purdy <[email protected]> wrote in message
news:[email protected]...
> Exception handling for custom tags is very poorly handled right now. For
> one thing, WL hides the actual exception.
>
> However, the way that you are doing this seems very odd. The error page
is
> for server errors, not user typos.
>
> Peace,
>
> --
> Cameron Purdy
> Tangosol, Inc.
> http://www.tangosol.com
> +1.617.623.5782
> WebLogic Consulting Available
>
>
> "John Bauer" <[email protected]> wrote in message
> news:[email protected]...
> > We are throwing a JSP exception within a custom tag when data validation
> > errors occur; the errorPage for the JSP page is then invoked to show the
> > appropriate errors. However, in the weblogic.log, a stack trace is
shown
> > indicating the exception (example below). We do not want this stack
track
> > shown unless there is a real "error" in our system vs. invoking the
> > errorPage to show "application" errors. Is there any way to supress
this,
> > as we are not explicitly causing this to happen. It appears to be a
> > weblogic feature. This causes us problems in finding true system errors
> > that might be occurring due to these non-problems showing up in the
> > weblogic.log.
> >
> > Thanks for the help.
> > John Bauer
> >
> > Wed Dec 20 15:34:49 EST 2000:<E> <ServletContext-General> exception
raised
> > on '/test/test.jsp'
> > javax.servlet.ServletException: runtime failure in custom tag 'testtag'
> > at jsp_servlet._test._test._jspService(_test.java:89)
> > at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
> > at
> >
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
> > :124)
> > at
> >
>
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
> > l.java:
> > 60)
> > at
> >
>
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
> > l.java:
> > 07)
> > at
> >
>
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
> > Manager
> > java:251)
> > at
> >
>
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:369)
> > at
> > weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:269)
> > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java,
Compiled
> > Code)
> >
> >
>
>
-
Weblogic.log formatting
I have 2 weblogic servers running.
one on my W2K laptop and an AS400
When a nosuchmethod error is logged on my W2K webserver
I get the method name.
When the same error is generated on my AS400 webserver it does not.
Is there a way to get it to show up in the AS400 weblogic.log
thanks in advance
Mickey"Beth" <[email protected]> wrote:
Hi,
I'm trying to find out some more info on the weblogic.log:
1) I see that there is a weblogic.system.maxLogFileSize property
in the weblogic.properties file which will rotate the log based on size.
Are we limited to size only? Is there any way to rotate the log file
based on a new day?This is available for access log...(for HTTP)
not sure for weblogic.log
>
2) Is there any way to specify exactly how many rotations you want?
For example if I only want to keep the last three weblogic.log files-
if there are already three on the system, overwrite the oldest one.
3) I am looking for more information on LogOutputStream, but haven't
been able to locate the doc on the web site. Any idea where I might find
it?
4) I assume by using LogOutputStream and log() that the server is taking
care of synchronizing multiple calls to the log file?I dont think logging is synchronised.
for me it makes sense.
>
5) During development I will be using calls such as log.debug() but when
I'm
ready for production I don't want those log messages in the log file. Is
there
any kind of switch to tell the logging mechanism to ignore certains types of
log
messages? Or does one have to do something specific to the code to ignore
those messages when the time comes?check out weblogic.system.discardOutAndErr=true
but i am not sure this will help..
>
Thanks in advance,
Beth -
Disabling logging to weblogic.log during startup of WLS
Hello,
Does anybody know how to disable logging to the weblogic.log file during startup
of WLS (v5.1.0).
Specifically I would like to hide parameters such as username and password that
show up as clear text for example when a database pool is created.
Thanks,
Murtaza.Hi under WLS5.1.0, you can not do it.
thanks
Yu
Murtaza Sonaseth <[email protected]> wrote in message
news:3b5c729e$[email protected]..
>
Hello,
Does anybody know how to disable logging to the weblogic.log file duringstartup
of WLS (v5.1.0).
Specifically I would like to hide parameters such as username and passwordthat
show up as clear text for example when a database pool is created.
Thanks,
Murtaza. -
Hi,
I'm trying to find out some more info on the weblogic.log:
1) I see that there is a weblogic.system.maxLogFileSize property
in the weblogic.properties file which will rotate the log based on size.
Are we limited to size only? Is there any way to rotate the log file
based on a new day?
2) Is there any way to specify exactly how many rotations you want?
For example if I only want to keep the last three weblogic.log files-
if there are already three on the system, overwrite the oldest one.
3) I am looking for more information on LogOutputStream, but haven't
been able to locate the doc on the web site. Any idea where I might find
it?
4) I assume by using LogOutputStream and log() that the server is taking
care of synchronizing multiple calls to the log file?
5) During development I will be using calls such as log.debug() but when
I'm
ready for production I don't want those log messages in the log file. Is
there
any kind of switch to tell the logging mechanism to ignore certains types of
log
messages? Or does one have to do something specific to the code to ignore
those messages when the time comes?
Thanks in advance,
Beth"Beth" <[email protected]> wrote:
Hi,
I'm trying to find out some more info on the weblogic.log:
1) I see that there is a weblogic.system.maxLogFileSize property
in the weblogic.properties file which will rotate the log based on size.
Are we limited to size only? Is there any way to rotate the log file
based on a new day?This is available for access log...(for HTTP)
not sure for weblogic.log
>
2) Is there any way to specify exactly how many rotations you want?
For example if I only want to keep the last three weblogic.log files-
if there are already three on the system, overwrite the oldest one.
3) I am looking for more information on LogOutputStream, but haven't
been able to locate the doc on the web site. Any idea where I might find
it?
4) I assume by using LogOutputStream and log() that the server is taking
care of synchronizing multiple calls to the log file?I dont think logging is synchronised.
for me it makes sense.
>
5) During development I will be using calls such as log.debug() but when
I'm
ready for production I don't want those log messages in the log file. Is
there
any kind of switch to tell the logging mechanism to ignore certains types of
log
messages? Or does one have to do something specific to the code to ignore
those messages when the time comes?check out weblogic.system.discardOutAndErr=true
but i am not sure this will help..
>
Thanks in advance,
Beth -
To debug our application, we inserted many System.out.println() in our
servlets/jsp. The problem is that, whereas they appear in the
weblogic-launch-window, they don't in the weblogic.log file. Is there a
property to change in order to get these messages?I am also lookign which log file "System.out.println's" are going to. Please give details as to what we need to do to see these messages and which log file to go to.
-
Weblogic.log error levels
I am trying to find some more information on the different error levels that are logged to weblogic.log. Does anyone know if the levels are described anywhere?
Or see weblogic.logging.Severities @
http://e-docs/wls/docs60/javadocs/index.html
Brad Stone <[email protected]> wrote in message
news:[email protected]...
WebLogic uses the following severities, in order of criticality:
Emergency The server is in an unusable state. This should only be used to
designate severe system failures or panics.
Alert A particular service is in an unusable state. Other parts of the
system continue to function. Automatic recovery is not possible and the
immediate attention of the administrator is required to resolve theproblem.
>
Critical A system/service level error has occurred. The system is ableto
recover, perhaps with a momentary loss or permanent degradation ofservice.
>
Notice A particularly important warning or informational message.
Messages, such as notification of successful recovery from a failure,which
is of particular importance to an administrator monitoring the server.
Error A user level error has occurred. The system is able to handle the
error with no interruption and limited degradation in service. Make this
severity less 'severe' than NOTICE.
Warning A warning message. A suspicious operation or configuration which
doesn't affect the normal operation of the server.
Informational An informational message. Used for the logging of normal
operations for later examination.
Debug A debug message. Should be output only when the server isconfigured
in a debug mode. May contain detailed information about operations or the
state of the server.
"Beth" <[email protected]> wrote in message
news:[email protected]...
I never found anything in the documentation. But if you are using
LogOutputStream, there is the following:
- emergency
- alert
- critical
- error
- notice
- warning
- info
- debug
All take parameters of either just a String or a String and Throwable.
I don't know of a way to tell Weblogic just to log certain levels andignore
others so when you are done debugging you don't log any of the debug
messages to the log file.
This can be found by doing a
javap weblogic.logging.LogOutputStream
Hope this is what you are looking for.
"Jennifer Edwards" <[email protected]> wrote in message
news:[email protected]...
I am trying to find some more information on the different error
levels
that are logged to weblogic.log. Does anyone know if the levels are
described anywhere? -
Logging to weblogic.log
hi
i need couple of clarifications with regard to implementation of logging with
weblogic.
a) Is logging implemented using JMS? ( Is logging asynchronous?)
b) I am wondering if i can use logging api into some helper classes that wouldn't
be run in weblogic server. If weblogic server is a pre-requisite, then i will
not be able to use this logging api in these classes.
Thanks
Rob Woollen <[email protected]> wrote:
From server-side code (ie servlets or EJB). do
LogServiceDef log = T3Services.getT3Services().log();
to get the log, and then you can use log.inform(), log.debug, or
log.error as appropriate.
See
http://www.weblogic.com/docs45/classdocs/weblogic.common.LogServicesDef.html
-- Rob
Rob Woollen
Software Engineer
BEA WebLogic
[email protected]
Vinny Carpenter wrote:
Hi there. I have a cluster of WebLogic 4.5.1 servers running under
Solaris 2.6. My application consists of two EJB's and a couple of
servlets as front end. As part of the application logging process,I
output certain text using System.out.println and System.err.printlnthat
are typically displayed on the console.
How can I redirect those messages to the machine's weblogic.log file??
Is there a logging mechanism that will allow me to do that?? thanks
--Vinny -
Hi all,
I have been following the tutorial, but unable to deploy. [wldeploy] java.lang.ClassNotFoundException: weblogic.logging.log4j.Log4jLoggin
gHelper.
I've checked the log4j.jar, it is there is lib dir. Please advise what is happening and how to fix it?
C:\Windows\system32>c:\bea\user_projects\domains\medrecdomain\bin\setDomainEnv.cmd
C:\bea\user_projects\domains\MedRecDomain>cd c:\medrec_tutorial\src\physicianEar
c:\medrec_tutorial\src\physicianEar>ant -f deploy.xml
Buildfile: deploy.xml
deploy:
[wldeploy] weblogic.Deployer -noexit -name tutorial_deployment -source C:\medre
c_tutorial\build\physicianEar -adminurl t3://127.0.0.1:7111 -user weblogic -pass
word ******** -deploy
[wldeploy] weblogic.Deployer invoked with options: -noexit -name tutorial_depl
oyment -source C:\medrec_tutorial\build\physicianEar -adminurl t3://127.0.0.1:71
11 -user weblogic -deploy
[wldeploy] <Jun 6, 2009 2:19:58 PM PDT> <Info> <J2EE Deployment SPI> <BEA-26012
1> <Initiating deploy operation for application, tutorial_deployment [archive: C
:\medrec_tutorial\build\physicianEar], to configured targets.>
[wldeploy] Task 2 initiated: [Deployer:149026]deploy application tutorial_deplo
yment on MedRecServer.
[wldeploy] Task 2 failed: [Deployer:149026]deploy application tutorial_deployme
nt on MedRecServer.
[wldeploy] Target state: deploy failed on Server MedRecServer
[wldeploy] java.lang.ClassNotFoundException: weblogic.logging.log4j.Log4jLoggin
gHelper
[wldeploy]
[wldeploy]
BUILD FAILED
C:\medrec_tutorial\src\physicianEar\deploy.xml:9: weblogic.Deployer$DeployerExce
ption: weblogic.deploy.api.tools.deployer.DeployerException: Task 2 failed: [Dep
loyer:149026]deploy application tutorial_deployment on MedRecServer.
Target state: deploy failed on Server MedRecServer
java.lang.ClassNotFoundException: weblogic.logging.log4j.Log4jLoggingHelper
thanks
andrew1. I haven't got a clue, according to the guide, it has a log4jConfig.xml to be copied from the samples dir, but I just got the the log4j.properties.
prompt> copy c:\bea\wlserver_10.0\samples\domains\medrec\log4jConfig.xml c:\bea\user_projects\domains\MedRecDomain
2. notepad c:\bea\user_projects\domains\MedRecDomain\bin\setDomainEnv.cmd
set LOG4J_CONFIG_FILE=c:\bea\user_projects\domains\MedRecDomain\log4jConfig.xml <-- which I replace with log4j.properties
3. Copy the log4j JAR files from the lib directory of the pre-configured MedRec domain to the lib directory of the new domain you just created:
prompt> copy c:\bea\wlserver_10.0\samples\domains\medrec\lib\*.jar c:\bea\user_projects\domains\MedRecDomain\lib
<-- I don't have *.jar in the samples dir, so I copy the log4j.jar from other directories.
Please advise how to install? or could you please cut and paste your log4jconfig.xml for your medrec?
thanks
andrew
Maybe you are looking for
-
Why won't my word document converted to PDF save?
When in word, I select the option to convert to PDF, the document is scanned and I'm prompted to save as PDF. All seems to work except it doesn't actually save! This was working previously until an update a few months ago. Any help is appreciated. Th
-
How to install adobe flash player on phone ?
how to install adobe flash player on my 4.3 Android wiko if it says my phone cannot istall it ?
-
Message Server in place of Application Server in DS Datastore
Hi, I'm trying to configure my SAP Application Datastore, linking it to the SAP message server instead of one of the four SAP application nodes available. The idea is to let the message server manage on which node the DS abap will be executed. I trie
-
How do i update my iPad 1 to iOS 6.0 when it says my iPad is already updated/
I want to bpdate my ipad to iOS 6.0 but when i go to Setting,General,system update, it says my system is fully updated when i only have iOS 5.1.1. how do i get iOS 6.0?
-
Help needed with itemrenderers
hey, I need some help with a couple of things. 1. In one of the columns of an advanced datagrid i need only the text appearing in brackets "( )" to be italicised. The data is fed in from an xml file. I am using the following code but not able to get