back to top

Logging Information and Errors in Creatio C# Code and Viewing from Cloud Hosted Systems

If you’re developing client side code for Creatio viewing information about what is happening at runtime is easy since you can output anything to the console. If you’re developing C# code, or need to debug C# code – even in a cloud hosted system, the best approach is to use a logger.

We can use a logger to log info, error, etc messages. To view these messages, we’ll use Clio Explorer, which is an add-on for Visual Studio Code.

View information about Clio Explorer

Using the log viewer built-into Clio Explorer we can view our logging information in real time, as things occur. The end result will be viewing logging messages like this:

In the image above, notice the message from “CfxLogger” that reads “Testing at 2/23/2024 11:59:39 PM”. That message was received from C# code running in Creatio as it was happening. Meaning, the logging message appeared just as the information was logged.

To use logging in your C# code in Creatio, you’ll need to include a using statement for the following namespace:

global::Common.Logging

If your C# code is in a script task in a process, be sure to add that in the methods tab of the process properties.

With that added we can add logging messages. First, we must create a logger. In the sample below I am giving my logger a name. This name can be anything. Having a unique name gives you something specific to look for in the logging output.

var logger = LogManager.GetLogger("CfxLogger");

With the logger created we can use the Info, Error, Warn etc functions to add logging messages of different types. This name is what we’ll use to listen for messages from in VSCode/Clio Explorer.

//create the logger 
var logger = LogManager.GetLogger("CfxLogger");

// log an info message
logger.Info("This is my test info message");

// log an error
logger.Error("Something bad happened!");

// log a warning
logger.Warn("Something sort of bad happened.");

Now, when this runs the information can be views using Clio Explorer. In Clio Explorer click the ellipsis button for the environment and then select logs.

Enter your logger name and click Start to begin listening for the messages and you’ll see them appear as they occur.

Alternatively, instead of using Clio Explorer, you can use the Telemetry Log from the Creatio marketplace to listen for the messages.

Contact Customer FX for your CRM project
We let our expertise speak for itself - let us know how our all-star team can help on your CRM project
About the Author
Ryan Farley
Ryan Farleyhttps://customerfx.com/article/author/ryanfarley/
Ryan Farley is the Director of Development for Customer FX and creator of slxdeveloper.com. He's been blogging regularly about SalesLogix, now Infor CRM, since 2001 and believes in sharing with the community. His new passion for CRM is Creatio, formerly bpm'online. He loves C#, Javascript, web development, open source, and Linux. He also loves his hobby as an amateur filmmaker.

2 COMMENTS

  1. How do you configure the logging level for this, both in a local instance and a cloud instance? Is it configurable on the fly, or does it require restarting? And can the log levels be set per-logger, or is it for all loggers in the system?

    • Comments from Creatio support on this:
      The logging level can be changed in the site configuration files, and it does not require a restart. It can be modified at any time without affecting users, by submitting a request to the support team.
      Log level on local env can be adjusted by adding string with your Logger name into nlog.config block (for cloud instances it would be nlog.cloud.config)

      The nlog.config file can be found in the Terrasoft.WebApp directory of local instances, and some Creatio documentation on the logger can be found here: https://academy.creatio.com/docs/developer/development_tools/logging/nlog/overview

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Building AI-Powered Workflows in Creatio Without Writing Code

See how Creatio can combine AI with no-code business processes to qualify, summarize, and route incoming leads while keeping your existing business rules and human oversight in place.

AI Readiness Checklist for CRM Teams: Is Your CRM System Ready for AI?

Before using AI in Creatio, make sure your CRM data, users, processes, and automation foundation are ready. Use this practical AI readiness checklist for CRM teams.

Build Your Creatio AI Skills with the 2026 AI Summer Program

Join Creatio’s free 2026 AI Summer Program to learn how to identify, build, deploy, and manage AI agents.

Creatio 10x Is Coming: Join the Webinar to Explore the Future of AI-Native CRM

Learn what's new in Creatio 10x and how AI-native CRM, agentic AI, and no-code automation are shaping the future of customer relationship management. Join the upcoming webinar and discover what's next.

Creatio Unlimited Pricing Explained: AI Packages, Costs, Pros & Cons

Learn what Creatio’s new Unlimited pricing model includes, what it doesn’t include, how AI Action packages work, and the pros and cons for businesses evaluating Creatio.

Related Articles

Building AI-Powered Workflows in Creatio Without Writing Code

See how Creatio can combine AI with no-code business processes to qualify, summarize, and route incoming leads while keeping your existing business rules and human oversight in place.

AI Readiness Checklist for CRM Teams: Is Your CRM System Ready for AI?

Before using AI in Creatio, make sure your CRM data, users, processes, and automation foundation are ready. Use this practical AI readiness checklist for CRM teams.

Build Your Creatio AI Skills with the 2026 AI Summer Program

Join Creatio’s free 2026 AI Summer Program to learn how to identify, build, deploy, and manage AI agents.

Creatio 10x Is Coming: Join the Webinar to Explore the Future of AI-Native CRM

Learn what's new in Creatio 10x and how AI-native CRM, agentic AI, and no-code automation are shaping the future of customer relationship management. Join the upcoming webinar and discover what's next.

Related Videos