Cluster & Weblogic logs
Hi.,
I have set up a weblogic cluster running from a shared disk. Currently both
servers create their log files (Weblogic.log) in their directories on the
shared disk. I would like the log to be on the local drive. When I try and
change the file location with a fully qualified directory and filename,
instead of creating the logfile on the local drive as expected, for some
reason the fully qualified path is appended to the cluster directory on the
shared disk.
Is this a bug ?
Eran
We ran into a similar problem and solved it by making the per-server
directories underneath the cluster home directory symlinks to the local
disk, rather than actual directories on the shared filesystem.
So if your cluster directory is /cluster:
/cluster
/cluster/server1 -> /var/log
/cluster/server2 -> /var/log
/cluster/server3 -> /var/log
The symlinks get resolved relative to the NFS client they're on - so each
server ends up writing its logs to local disk at /var/log. The drawback is
that your per-server properties files (if any) need to be on the local
disks, rather than on the shared filesystem. But you could probably get
around this by linking from /var/log back into the shared filesystem (not
sure...we don't have per-server props files).
Ideally I'd rather be able to just give the logfile a fully-qualified
pathname rather than this weird symlink stuff, but this seems to work...
Mike Benham <[email protected]> wrote in message
news:[email protected]...
>
> Yes this is a bug that has been identified. We should accept both
> fully qualified and relative path names. It should be fixed in the next
> maintenance release, but I suppose you could hack functionality by using
> relative pathnames until then:
> "../../../../dir/outside/of/weblogic/install" =)
>
> - Mike
>
>
>
> Jean-François ESPERET wrote:
> >
> > Eran Shtiegman a écrit :
> >
> > > Hi.,
> > >
> > > I have set up a weblogic cluster running from a shared disk.
Currently both
> > > servers create their log files (Weblogic.log) in their directories on
the
> > > shared disk. I would like the log to be on the local drive. When I
try and
> > > change the file location with a fully qualified directory and
filename,
> > > instead of creating the logfile on the local drive as expected, for
some
> > > reason the fully qualified path is appended to the cluster directory
on the
> > > shared disk.
> > >
> > > Is this a bug ?
> > >
> > > Eran
> >
> > I've got the same problem and it seems to be a bug and I'll tell you why
I think
> > so:
> > we're running Weblogic under Solaris 2.6 Sparc and when we put a fully
qualified
> > directory and filename (unix), it creates a directory starting with 'c:'
. I
> > mean it creates a MS Windows like directory into an Unix filesystem.
Similar Messages
-
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 -
Can I change where WL dumps weblogic.log?
Hi,
I believe WL always writes wl.log to the subdir defined by
weblogic.system.home... can I specify a different directory for logging?
This is important for us in the context of clustering and shared file
system, because we want WL to log to a local dir instead of the shared file
system (for performance reasons), and yet in order to clustering to work
under 5.1, I had to set weblogic.system.home to a directory under the shared
file system!
GeneYes this bug will be fixed in service pack 2.
Prasad
Gene Chuang wrote:
> I posted in the env group as well, but the only reason why I need to change
> the location of the weblogic.log is because of the 5.1 unable to cluster ejb
> due to tmp_deployments bug... If this bug can be solved, I have no reason
> to change where weblogic.log gets dumped!
>
> Gene
>
> "Prasad Peddada" <[email protected]> wrote in message
> news:[email protected]..
> > You should post this in environment newsgroup.
> >
> > Thanks
> > Prasad
> >
> > Gene Chuang wrote:
> >
> > > Hi,
> > >
> > > I believe WL always writes wl.log to the subdir defined by
> > > weblogic.system.home... can I specify a different directory for
> logging?
> > > This is important for us in the context of clustering and shared file
> > > system, because we want WL to log to a local dir instead of the shared
> file
> > > system (for performance reasons), and yet in order to clustering to work
> > > under 5.1, I had to set weblogic.system.home to a directory under the
> shared
> > > file system!
> > >
> > > Gene
> >
-
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 -
Hardware Load Balancers and Cluster WebLogic Proxy Plug-in setting
Documentation states that we need to enable the Cluster WebLogic Proxy Plug-in setting when there is a proxy plugin or HttpClusterServlet configured.
We used to have Weblogic Proxy plugin and the setting is still there, also the proxy was replaced by the hardware loadbalancer. Everything works normally and no one complained, but I would assume that WebLogic Proxy Plug-in setting should not be applicable any longer.
Is it possibly harmful to have that setting there? Does it mean that the loadbalancer emulates WebLogic Proxy Plug-in and also need this set?
Thank youThe Weblogic Proxy Plug-in Enabled flag only affects the behavior of a WL proxy module (such as if you were using Apache to proxy to WL via the mod_wl.so module). The value controls what IP address is returned when you call request.getRemoteAddr() from your application. If not enabled, you will get the IP address of the web server that proxied the request. If enabled, you will get the remote client IP address (instead of the proxy IP address) facilitated by the WL-Proxy-Client-IP header. If you are no longer using a plug-in module, the setting will have no affect. Hope this helps...
-
Our file system is filling up on our PI system, I see allot of .ZIP files in this directory, can I just delete them?
j2ee/cluster/server0/log/archiveHi David,
as you can read [here|http://help.sap.com/saphelp_sem60ep1/helpdata/EN/f6/7d814282cfc153e10000000a1550b0/frameset.htm] the ZIP files contain old log files so you can delete them to free up space.
Hope this helps,
Robert -
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.
Maybe you are looking for
-
Insert or Update a target with no constraints
I am trying to figure out how to do an insert/update on a target table which doesn't have a constraint? In other words how to define a condition on this target table attribute to achieve this? please advice. ~Prabha
-
Receiver SFTP Channel giving error
Hi PI Experts, My scenario is ECC->PI->SFTP server. I am using Password based Authentication to send files to SFTP server using SFTP adapter. Now SFTP adapter giving the error like "Message could not be forwarded to the JCA adapter. Reason: com.jcraf
-
BULK COLLECT and FORALL with dynamic INSERT.
Hello, I want to apply BULK COLLECT and FORALL feature for a insert statement in my procedure for performance improvements as it has to insert a huge amount of data. But the problem is that the insert statement gets generated dynamically and even the
-
Separate genres to act independent of each other
i would like to enter multiple genres for a particular album/song so that it appears in multiple genres listed in the browser. example: right now, if i edit the genre information of the radiohead song "idioteque" to read "rock, progressive, electroni
-
[CS3] Method Generate for the object Index fails
Hello, I will create an index in my VB script with InDesign CS3: Set objIndex = docindex.Generate(indIndexDoc.Pages.Item(1),p) The index is longer than one page. I think this is the reason, when I get this error: Runtime error -2147417851 (80010105)