There exists a log4net extension that provides logging using log4net. Please, download the nuget package Appccelerate.SourceTemplates to get the sample code. You can either take the source as is, or change it so it meets your logging requirements.
You can add an instance of the
Appccelerate.Log4Net.StateMachineLogExtension to the state machine:
You can define the logger that log4net uses by specifing the name in the constructor:
If you want to change either the logging framework or what and how is logged then you can write your own logging extension.