FASPManager supports logging for both its Java and C# SDK. The Java version of FASPManager utilizes log4j and the C# version utilizes System.Diagnostics.Trace.

Java Logging

FASPManager utilizes log4j for logging; the best way to undertstand how to utilize log4j in your code is to visit the project's site which includes step by step instructions on how to utilize the logs. To learn more about log4j, please visit the Apache log4j site.

C# Logging

FASPManager utilizes the built in System.Diagnostics.Trace for C#. This means that you can easily view it in the Output window in Visual Studio or in a stand alone app designed for .NET development (like DebugView).

You can also easily log to a file or other destination by altering the 'app.config' file in your .NET project. You will need to add a section in the <system.diagnostics> section to set autoflush to true and in the sources tag add your app as a source with a listener utilizing the System.Diagnostics.TextWriterTraceListener class. Depending on your setup you can also specify a file location here if you wish to write to a file via the initializeData attribute. For a more detailed overview please reference the MSDN article on Creating and Initializing Trace Listeners.

Video player

Video

×