Skip to content

Logging

Zach Sanford edited this page Nov 5, 2022 · 1 revision

πŸ” Overview

Logging was added in the v0.1.1 release of Staffify. This was built with Serilog. Logging is featured on all of the web pages as well as the Database API Service.

πŸ“ Configuration

File
~\Serilog\Program.cs

I configured the logging service to write to a file. When the web application is ran for the first time, it will create a \Log directory and populate a new log daily.

Log.Logger = new LoggerConfiguration()
    .WriteTo.File("Log/.log", rollingInterval: RollingInterval.Day)
    .CreateLogger();

Staffify Wiki

  • πŸ§‘β€πŸ€β€πŸ§‘ Models

Clone this wiki locally