¡@

Home 

c# Programming Glossary: logfile

What is the best way to run ServiceStack on Linux / Mono?

http://stackoverflow.com/questions/12188356/what-is-the-best-way-to-run-servicestack-on-linux-mono

etc rc.d init.d mono fastcgi socket tcp 127.0.0.1 9000 logfile var log mono fastcgi.log Which hosts all applications defined..

Debug Windows Service

http://stackoverflow.com/questions/2629720/debug-windows-service

assemblypath C dev Restarter bin Release Restarter.exe logfile C dev Restarter bin Release Restarter.InstallLog The Install.. assemblypath C dev Restarter bin Release Restarter.exe logfile C dev Restarter bin Release Restarter.InstallLog The Commit..

Add / remove logfiles during runtime in NLog

http://stackoverflow.com/questions/3516242/add-remove-logfiles-during-runtime-in-nlog

remove logfiles during runtime in NLog I'm writing a small file conversion.. during the conversion process. I tried something like var logfile new NLog.Targets.FileTarget logfile.FileName fileName .log logfile.KeepFileOpen.. something like var logfile new NLog.Targets.FileTarget logfile.FileName fileName .log logfile.KeepFileOpen true logfile.Initialize..

Using Process.Start() to start a process as a different user from within a Windows Service

http://stackoverflow.com/questions/362419/using-process-start-to-start-a-process-as-a-different-user-from-within-a-windo

int winError Marshal.GetLastWin32Error File.AppendAllText logfile DateTime.Now.ToLongTimeString winError Environment.NewLine .. int winError Marshal.GetLastWin32Error File.AppendAllText logfile DateTime.Now.ToLongTimeString winError Environment.NewLine ..

Mirroring console output to a file

http://stackoverflow.com/questions/420429/mirroring-console-output-to-a-file

true Trace.WriteLine The first line to be in the logfile and on the console. As far as I can recall you can define the..

How do I use a GlobalContext property in a log4net appender name?

http://stackoverflow.com/questions/562108/how-do-i-use-a-globalcontext-property-in-a-log4net-appender-name

void Application_Start object sender EventArgs e Set logfile name and application name variables log4net.GlobalContext.Properties.. .Name Load log4net configuration System.IO.FileInfo logfile new System.IO.FileInfo Server.MapPath log4net.config log4net.Config.XmlConfigurator.ConfigureAndWatch.. log4net.Config.XmlConfigurator.ConfigureAndWatch logfile Record application startup log.Debug Application startup Hope..

build visual studio project through the command line

http://stackoverflow.com/questions/5669765/build-visual-studio-project-through-the-command-line

Configuration Release l FileLogger Microsoft.Build.Engine logfile Manual_MSBuild_ReleaseVersion_LOG.log set msBuildDir You can.. Configuration Release l FileLogger Microsoft.Build.Engine logfile Manual_MSBuild_ReleaseVersion_LOG.log set msBuildDir XCOPY ...

How to restore a database from C#

http://stackoverflow.com/questions/1466651/how-to-restore-a-database-from-c-sharp

sqlRestore.Action RestoreActionType.Database string logFile System.IO.Path.GetDirectoryName backUpFile logFile System.IO.Path.Combine.. string logFile System.IO.Path.GetDirectoryName backUpFile logFile System.IO.Path.Combine logFile databaseName _Log.ldf string.. backUpFile logFile System.IO.Path.Combine logFile databaseName _Log.ldf string dataFile System.IO.Path.GetDirectoryName..

How do I MOQ the System.IO.FileInfo class… or any other class without an interface?

http://stackoverflow.com/questions/1582596/how-do-i-moq-the-system-io-fileinfo-class-or-any-other-class-without-an-inter

without having an interface available private FileInfo _logFile public LogEventProcessorTextFile FileInfo logFile _logFile logFile.. _logFile public LogEventProcessorTextFile FileInfo logFile _logFile logFile When I really want to do something like this.. public LogEventProcessorTextFile FileInfo logFile _logFile logFile When I really want to do something like this note IFileInfo..

Add / remove logfiles during runtime in NLog

http://stackoverflow.com/questions/3516242/add-remove-logfiles-during-runtime-in-nlog

LoggingConfiguration config LogManager.Configuration var logFile new FileTarget config.AddTarget file logFile logFile.FileName.. var logFile new FileTarget config.AddTarget file logFile logFile.FileName fileName .log logFile.Layout date message var.. var logFile new FileTarget config.AddTarget file logFile logFile.FileName fileName .log logFile.Layout date message var rule..