Skip to content

Debugging

Gurmit Teotia edited this page Jan 19, 2018 · 2 revisions

You can configure the Guflow to give you more information about its inner working. You have following two options:

  1. Configure the generic error handler on host to log any unhandled exception

    var host = domain.Host(new []{new TranscodeWorkflow()); //It also apply to ActivityHost
    host.OnError(e=>{ Console.WriteLine(e.Exception); return ErrorAction.Continue;});
       ...

    You can read more about error handling here.

  2. Configure the logging to output its internal message. By default logging is disabled. You should enable the logging before executing any Guflow code.

    Log.Register(Log.Console); 

    You can also register the custom logger if you wish to log the message to file.

Clone this wiki locally