Hi,
What would be the best approach to log different items (SQL, Exceptions,
Security, ...)
I have a simple Logging function that adds log string to the end of a text
file.
Is there any application block for that? Should i do the logging into SQL
server table ?
Any help would be apprecited,
Ali 8 1622
I've always preferred using a DB, like MS SQL, to log to. It allows for
easier retrieval later and better reporting.
--
Curt Christianson
Owner/Lead Developer, DF-Software www.Darkfalz.com
"A.M" <IH*******@sapm123.com> wrote in message
news:O%****************@tk2msftngp13.phx.gbl... Hi,
What would be the best approach to log different items (SQL, Exceptions, Security, ...) I have a simple Logging function that adds log string to the end of a text file. Is there any application block for that? Should i do the logging into SQL server table ?
Any help would be apprecited, Ali
Isn't it a heavy load on DB server?
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:ut**************@TK2MSFTNGP11.phx.gbl... I've always preferred using a DB, like MS SQL, to log to. It allows for easier retrieval later and better reporting.
-- Curt Christianson Owner/Lead Developer, DF-Software www.Darkfalz.com
"A.M" <IH*******@sapm123.com> wrote in message news:O%****************@tk2msftngp13.phx.gbl... Hi,
What would be the best approach to log different items (SQL, Exceptions, Security, ...) I have a simple Logging function that adds log string to the end of a
text file. Is there any application block for that? Should i do the logging into
SQL server table ?
Any help would be apprecited, Ali
Curt_C [MVP] wrote: I've always preferred using a DB, like MS SQL, to log to. It allows for easier retrieval later and better reporting.
How do you log a failed login into the database?
--
gabriel
not really, I mean it's better then opening files as the file system level
that's for sure....
--
Curt Christianson
Owner/Lead Developer, DF-Software www.Darkfalz.com
"A.M" <IH*******@sapm123.com> wrote in message
news:eo**************@TK2MSFTNGP11.phx.gbl... Isn't it a heavy load on DB server?
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message news:ut**************@TK2MSFTNGP11.phx.gbl... I've always preferred using a DB, like MS SQL, to log to. It allows for easier retrieval later and better reporting.
-- Curt Christianson Owner/Lead Developer, DF-Software www.Darkfalz.com
"A.M" <IH*******@sapm123.com> wrote in message news:O%****************@tk2msftngp13.phx.gbl... Hi,
What would be the best approach to log different items (SQL,
Exceptions, Security, ...) I have a simple Logging function that adds log string to the end of a text file. Is there any application block for that? Should i do the logging into SQL server table ?
Any help would be apprecited, Ali
I have a seperate user that runs all "non-user specific" items, like
logging.
--
Curt Christianson
Owner/Lead Developer, DF-Software www.Darkfalz.com
"gabriel" <no@no--spam.com> wrote in message
news:1e***************************@msgid.meganewss ervers.com... Curt_C [MVP] wrote:
I've always preferred using a DB, like MS SQL, to log to. It allows for easier retrieval later and better reporting.
How do you log a failed login into the database?
-- gabriel
I use sqlserver, and a background thread to do the logging, this way logging
does not hold up processing. if the logging thread cannot write to
sqlserver, it logs to the event log.
-- bruce (sqlwork.com)
"A.M" <IH*******@sapm123.com> wrote in message
news:O#**************@tk2msftngp13.phx.gbl... Hi,
What would be the best approach to log different items (SQL, Exceptions, Security, ...) I have a simple Logging function that adds log string to the end of a text file. Is there any application block for that? Should i do the logging into SQL server table ?
Any help would be apprecited, Ali
There are many places you can log your errors. My prefrence is to use the windows event logs
You can also have your own text file logging. It can be plain text or an XML file
As Curt mentioned SQL is also another alternative and it is also the easiest to report from if you have a need for that kind of stuff
Each of the above methods has their ups and downs
Logging to the event logs>> Web users have to given rights to write to this log and sys admins sometimes wont like this
Logging to your own text file>> Slower than logging to SQL or Event logs. You have manage the file on your own(i.e. how much can it grow, etc
Logging to SQL server>> Logging credentials might fail
It's up to you to figure out what best fits your application and design the best solution
BTW when you are logging errors to the database it would be better to use different credentials to write to the SQL tables other than the credentials used to access your transactional system. Even that's not fail proof so you have to handle a scenario where the credentials fail
A good place to start might be to look at Microsoft's exception management block http://msdn.microsoft.com/library/de...tml/emab-rm.as
HTH
Suresh
----- gabriel wrote: ----
Curt_C [MVP] wrote I've always preferred using a DB, like MS SQL, to log to. It allows fo easier retrieval later and better reporting
How do you log a failed login into the database
--
gabrie
Hi Ali,
Thanks for posting here. As for the datasource to store logging info, I
think Curt and bruce's suggestions are quite considerable. In addition, I'm
not sure whether you've used the "Log4Net" component, it is a tool to help
the programmer output log statements to a variety of output targets.
log4net is a port of the excellent log4j framework to the .NET runtime. Its
multi-Adaptors have provide the support to many targets such as database
server, xml log files and event log.. etc. You'may get its info via the
following web link:
#log4net - Features http://log4net.sourceforge.net/relea.../features.html
Hope this also helps.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey http://msdn.microsoft.com/asp.net/whidbey/default.aspx This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: jjesso |
last post by:
I am trying to add a new logging level.
logging.config.fileConfig("bengineLog.cfg")
logging.CLIENT = logging.INFO + 1
logging.addLevelName( logging.CLIENT, 'CLIENT' )
logging.root.setLevel( )...
|
by: Karuppasamy |
last post by:
H
I am trying to use the Logging Module provided by Microsoft Application Blocks for .Net
I installed everything as per the Instructions given in the 'Development Using the Logging Block'
...
|
by: pmatos |
last post by:
Hi all,
I am trying to create a simple but efficient C++ logging class. I know
there are lots of them out there but I want something simple and
efficient. The number one requirement is the...
|
by: Rotem |
last post by:
Hi,
while working on something in my current project I have made several
improvements to the logging package in Python, two of them are worth
mentioning:
1. addition of a logging record field...
|
by: Burkhard Schultheis |
last post by:
As I wrote last week, we have a problem with a DB2 V8 on Linux. Here is
what is in db2diag.log during online backup:
Starting a full database backup.
2004-04-01-02.33.54.760164 ...
|
by: robert |
last post by:
As more and more python packages are starting to use the bloomy
(Java-ish) 'logging' module in a mood of responsibility and as I am not
overly happy with the current "thickener" style of usage, I...
|
by: rajesh.hanchate |
last post by:
Please help me in resolving this issue.
I am using EnterpriseLibrary 2.0 Exception and logging block for
logging exceptions to event log. It works fine for sometime. After some
time it stops...
|
by: Chris Shenton |
last post by:
I am setting up handlers to log DEBUG and above to a rotating file and
ERROR and above to console. But if any of my code calls a logger
(e.g., logging.error("foo")) before I setup my handlers, the...
|
by: Lowell Alleman |
last post by:
Here is the situation: I wrote my own log handler class (derived from
logging.Handler) and I want to be able to use it from a logging config
file, that is, a config file loaded with the...
|
by: samwyse |
last post by:
In the Python 2.5 Library Reference, section 14.5.3 (Logging to
multiple destinations), an example is given of logging to both a file
and the console. This is done by using logging.basicConfig()...
|
by: Rina0 |
last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: erikbower65 |
last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA:
1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
|
by: kcodez |
last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
|
by: Taofi |
last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same
This are my field names
ID, Budgeted, Actual, Status and Differences
...
|
by: DJRhino1175 |
last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this -
If...
|
by: Rina0 |
last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
|
by: DJRhino |
last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer)
If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _
310030356 Or 310030359 Or 310030362 Or...
|
by: DJRhino |
last post by:
Was curious if anyone else was having this same issue or not....
I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
| |