VMware {code} Community
srimini
Contributor
Contributor

how to disable the logging done by VI SDK

Hi ,

i am using apputil , service util classes of VI SDK to connect to ESX/VC ........ but i dont want the default log messages given by the sdk.....how to disable that.......please help me

Thanks in advance

Regards,

Padmini

0 Kudos
6 Replies
muthumia
Enthusiast
Enthusiast

Please help me even on this.

But padmini, in your case was it the logs from VMware API or SOAP calls??

0 Kudos
srimini
Contributor
Contributor

Hi,

i think its becos of SOAP calls not sure.........

i have attached a part of my output...

Regards,

Padmini.....

0 Kudos
Steve_Jin
Expert
Expert

What is the path to your log file?

The log entries seem from AXIS library. Have you checked if you have any log4j configuration in your project? You can change it to disable the logging.

Steve JIN, VMware Engineering

Creator of VI Java API: http://vijava.sf.net

Steve JIN Author of VMware VI and vSphere SDK; Creator of open source VI Java API (http://vijava.sf.net); Blogger at http://www.doublecloud.org
0 Kudos
srimini
Contributor
Contributor

Hi,

i am using log 4j......but i do logging using that ....how to disable those AXIS loggings?...

Regards,

Padmini

0 Kudos
Steve_Jin
Expert
Expert

Check out: http://ws.apache.org/axis/java/reference.html#AxisLoggingConfiguration

Steve JIN, VMware Engineering

Creator of VI Java API:

Steve JIN Author of VMware VI and vSphere SDK; Creator of open source VI Java API (http://vijava.sf.net); Blogger at http://www.doublecloud.org
0 Kudos
srimini
Contributor
Contributor

Hi,

Thanks it is working but from the vmware API i get the message begin log and some printlns i donno whether those messages are getting logged somewhere...how to find that and how to disable that?

Regards,

padmini

0 Kudos