all groups > visual studio .net enterprise tools > october 2003 >
You're in the

visual studio .net enterprise tools

group:

Prevent Logging of certain EIF messages


Prevent Logging of certain EIF messages Jim
10/29/2003 12:26:12 PM
visual studio .net enterprise tools:
How can you prevent the logging of the message about EIF not being able to
create a backup file when it loads the configuration file or for that matter
turn off the logging of the fact that it successfully loaded. In fact, is it
possible to have it log only if it cannot load the
EnterpriseInstrumentation.config file?

On our terminal servers where we used EIF enabled application we end up with
a whole lot of these EIF entries.

Thank you in advance.

Jim

Re: Prevent Logging of certain EIF messages Jim
10/29/2003 2:56:09 PM
Mike,

I would be OK with a registry entry or config file for EIF either way. I
would definitely want the option of what to log such as success, failure and
warning. I suppose the config file that was being loaded could even have a
key that indicated logging and level if you wanted it on an application by
application basis. My preference would be system wide or at least a system
wide override (similar to machine.config and web.config).

I would think two keys. LogConfigFileRead with a true/false and a
LogConfigFileReadLevel with something like 0,1,2 with 0 for fail only, fail
and error and fail, error and success. Of course you could just use the
second key and have 0,1,2,3,4 with 0 equals no logging, 1 fail only, etc.

Hope this makes good sense. It did tome while I was writing it anyway. :-)

Thank you,

Jim

[quoted text, click to view]

RE: Prevent Logging of certain EIF messages mikehayt_ NO[at]SPAM online.microsoft.com
10/29/2003 8:34:18 PM
Sorry Jim,

There is no way of preventing these messages in the current version of EIF.
This is a request that weve heard several times, and I am lobbying to get
it into the next version.

Where do you think such a setting(s) should be specified?
What would you call the setting(s)?

Mike

--------------------
| From: "Jim" <jim@nospam.com>
| Subject: Prevent Logging of certain EIF messages
| Date: Wed, 29 Oct 2003 12:26:12 -0600
| Lines: 14
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <#NW7ioknDHA.3316@TK2MSFTNGP11.phx.gbl>
| Newsgroups: microsoft.public.vsnet.enterprise.tools
| NNTP-Posting-Host: wss.healthware.com 209.192.95.117
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.vsnet.enterprise.tools:1238
| X-Tomcat-NG: microsoft.public.vsnet.enterprise.tools
|
| How can you prevent the logging of the message about EIF not being able to
| create a backup file when it loads the configuration file or for that
matter
| turn off the logging of the fact that it successfully loaded. In fact, is
it
| possible to have it log only if it cannot load the
| EnterpriseInstrumentation.config file?
|
| On our terminal servers where we used EIF enabled application we end up
with
| a whole lot of these EIF entries.
|
| Thank you in advance.
|
| Jim
|
|
|

--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Re: Prevent Logging of certain EIF messages mikehayt_ NO[at]SPAM online.microsoft.com
10/31/2003 5:11:12 PM
Thanks for your thoughts.

I am currently thinking of:
- one switch to disable the auto backup of EI.config file. (true=no backup,
false=(default) tries to backup)
- one switch to set the EIF message logging level (0=none, 1=errors,
2=errors&warnings, 3=(default) All: errors,warnings&information)
I was thinking of putting these in <appSettings> in the app.config file,
since they could be put in machine.config for a machine level effect if
needed.

Can you give me your thoughts on this design?

--------------------
| Mike,
|
| I would be OK with a registry entry or config file for EIF either way. I
| would definitely want the option of what to log such as success, failure
and
| warning. I suppose the config file that was being loaded could even have a
| key that indicated logging and level if you wanted it on an application by
| application basis. My preference would be system wide or at least a system
| wide override (similar to machine.config and web.config).
|
| I would think two keys. LogConfigFileRead with a true/false and a
| LogConfigFileReadLevel with something like 0,1,2 with 0 for fail only,
fail
| and error and fail, error and success. Of course you could just use the
| second key and have 0,1,2,3,4 with 0 equals no logging, 1 fail only, etc.
|
| Hope this makes good sense. It did tome while I was writing it anyway. :-)
|
| Thank you,
|
| Jim
|
[quoted text, click to view]
| > Sorry Jim,
| >
| > There is no way of preventing these messages in the current version of
| EIF.
| > This is a request that weve heard several times, and I am lobbying to
get
| > it into the next version.
| >
| > Where do you think such a setting(s) should be specified?
| > What would you call the setting(s)?
| >
| > Mike
| >
| > --------------------
| > | How can you prevent the logging of the message about EIF not being
able
| to
| > | create a backup file when it loads the configuration file or for that
| > matter
| > | turn off the logging of the fact that it successfully loaded. In fact,
| is
| > it
| > | possible to have it log only if it cannot load the
| > | EnterpriseInstrumentation.config file?
| > |
| > | On our terminal servers where we used EIF enabled application we end
up
| > with
| > | a whole lot of these EIF entries.
| > |
| > | Thank you in advance.
| > |
| > | Jim
| > |
| > |
| > |
| >
| > --
| >
| > This posting is provided "AS IS" with no warranties, and confers no
| rights.
| > Use of included script samples are subject to the terms specified at
| > http://www.microsoft.com/info/cpyright.htm
| >
|
|
|

--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Re: Prevent Logging of certain EIF messages Jim
11/7/2003 6:38:01 PM
Mike,

I think that would work out great and I especially like the idea of putting
it in the app.config or machine.config. I did not realize that a choice in
the app.config worked in machine.config that way so I learned something new
from this too. My one thought here, may be the backup flag should be "true"
to backup and "false" is no backup and the absence of the key is the default
of true so backup by default. This would avoid the kind of negative logic of
saying, yes, do the backup by saying no, don't not backup. See what I mean?

The not backing up choice may also take care of the issue we appeared to
experience on a terminal server the other day when we included the backup
file in the install msi. Not 100% sure but when we made it read-only again
vs read-write the problem went away so I can only guess that in that brief
instance of it backing up someone starting up the application saw it as
"missing" which caused the auto repair feature of the installer to try and
reinstall it. Besides, in this environment we have a lot of people logging
in and out all day and there really isn't a reason to backup the file
everytime someone logs in.

BTW, great thanks for wanting my input.

Jim

[quoted text, click to view]

Re: Prevent Logging of certain EIF messages mikehayt_ NO[at]SPAM online.microsoft.com
11/8/2003 5:43:53 PM
Jim,

Thanks for the feedback - I totally agree about the negative logic point -
my bad :)

Mike

--------------------
| Mike,
|
| I think that would work out great and I especially like the idea of
putting
| it in the app.config or machine.config. I did not realize that a choice in
| the app.config worked in machine.config that way so I learned something
new
| from this too. My one thought here, may be the backup flag should be
"true"
| to backup and "false" is no backup and the absence of the key is the
default
| of true so backup by default. This would avoid the kind of negative logic
of
| saying, yes, do the backup by saying no, don't not backup. See what I
mean?
|
| The not backing up choice may also take care of the issue we appeared to
| experience on a terminal server the other day when we included the backup
| file in the install msi. Not 100% sure but when we made it read-only again
| vs read-write the problem went away so I can only guess that in that brief
| instance of it backing up someone starting up the application saw it as
| "missing" which caused the auto repair feature of the installer to try and
| reinstall it. Besides, in this environment we have a lot of people logging
| in and out all day and there really isn't a reason to backup the file
| everytime someone logs in.
|
| BTW, great thanks for wanting my input.
|
| Jim
|
[quoted text, click to view]
| > Thanks for your thoughts.
| >
| > I am currently thinking of:
| > - one switch to disable the auto backup of EI.config file. (true=no
| backup,
| > false=(default) tries to backup)
| > - one switch to set the EIF message logging level (0=none, 1=errors,
| > 2=errors&warnings, 3=(default) All: errors,warnings&information)
| > I was thinking of putting these in <appSettings> in the app.config file,
| > since they could be put in machine.config for a machine level effect if
| > needed.
| >
| > Can you give me your thoughts on this design?
| >
| > --------------------
| > | Mike,
| > |
| > | I would be OK with a registry entry or config file for EIF either way.
| I
| > | would definitely want the option of what to log such as success,
failure
| > and
| > | warning. I suppose the config file that was being loaded could even
have
| a
| > | key that indicated logging and level if you wanted it on an
application
| by
| > | application basis. My preference would be system wide or at least a
| system
| > | wide override (similar to machine.config and web.config).
| > |
| > | I would think two keys. LogConfigFileRead with a true/false and a
| > | LogConfigFileReadLevel with something like 0,1,2 with 0 for fail only,
| > fail
| > | and error and fail, error and success. Of course you could just use
the
| > | second key and have 0,1,2,3,4 with 0 equals no logging, 1 fail only,
| etc.
| > |
| > | Hope this makes good sense. It did tome while I was writing it anyway.
| :-)
| > |
| > | Thank you,
| > |
| > | Jim
| > |
[quoted text, click to view]
| > | > Sorry Jim,
| > | >
| > | > There is no way of preventing these messages in the current version
of
| > | EIF.
| > | > This is a request that weve heard several times, and I am lobbying
to
| > get
| > | > it into the next version.
| > | >
| > | > Where do you think such a setting(s) should be specified?
| > | > What would you call the setting(s)?
| > | >
| > | > Mike
| > | >
| > | > --------------------
| > | > | How can you prevent the logging of the message about EIF not being
| > able
| > | to
| > | > | create a backup file when it loads the configuration file or for
| that
| > | > matter
| > | > | turn off the logging of the fact that it successfully loaded. In
| fact,
| > | is
| > | > it
| > | > | possible to have it log only if it cannot load the
| > | > | EnterpriseInstrumentation.config file?
| > | > |
| > | > | On our terminal servers where we used EIF enabled application we
end
| > up
| > | > with
| > | > | a whole lot of these EIF entries.
| > | > |
| > | > | Thank you in advance.
| > | > |
| > | > | Jim
| > | > |
| > | > |
| > | > |
| > | >
| > | > --
| > | >
| > | > This posting is provided "AS IS" with no warranties, and confers no
| > | rights.
| > | > Use of included script samples are subject to the terms specified at
| > | > http://www.microsoft.com/info/cpyright.htm
| > | >
| > |
| > |
| > |
| >
| > --
| >
| > This posting is provided "AS IS" with no warranties, and confers no
| rights.
| > Use of included script samples are subject to the terms specified at
| > http://www.microsoft.com/info/cpyright.htm
| >
|
|
|

--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
AddThis Social Bookmark Button