Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
firstline1
titleCreate log entry
linenumberstrue
/*The logger have teh following options:*/
Log.LogInfo("This is an info message");
Log.LogDebug("This is a debug message");
Log.LogWarn("This is a warning message");

Log.LogException(new Exception("This is an exception message"));

Having logged in this way will make the messages appear in the application insights logs. 

On how to view those, view the documentation for the integration service.

Other functionality

Global Enums

In here , you can store the enums that are to be used throughout the systems.

EnvConf

Use this class to get environment variables from Azure.

The methods provide options for getting various types of data.

DTOs folder

This folder is reserved for DTO entities. 
Please keep a good order and follow the guidelines for putting them here:

  • Add a top level folder under the 'DTO' folder
  • Name the sub folder a describtive thing according to where the DTOs are used
  • Put the DTOs in the folder