Search

Tutorials, tips&tricks, snippets..

#KISS: KEEP IT SIMPLE, STUPID!

Tag

log

Where can I find the IIS logs?

Where does IIS7 store logs by default? Here:

%SystemDrive%\inetpub\logs\LogFiles

Advertisements

SQL Server: check log size

To see how much MB your SQL Server log is, just run this query:

DBCC SQLPERF(logspace)

How to create a log file with C#

As the title said, here how you can create useful log files for your applications. This code creates the folder where you want to create the files (if the folder doesn’t exist) and creates one file per day.

Continue reading “How to create a log file with C#”

Entity Framework 6: audit / track changes

Entity Framework is very powerful. It takes care of the dirty jobs and it makes your programmer’s life easier. A very useful feature you can use is override the saveChanges method, for example, to audit/track the changes made.

Continue reading “Entity Framework 6: audit / track changes”

Powered by WordPress.com.

Up ↑