SECI  1
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events
Static Public Member Functions | Static Private Member Functions | List of all members
Seci.Helpers.MessageLogger Class Reference

This class is used for logging messages to file; typical messages are configuration loaded, seci started etc. More...

Collaboration diagram for Seci.Helpers.MessageLogger:
Collaboration graph

Static Public Member Functions

static void WriteMessage (String source, String message)
 Method for actually writing the message to the file. If the file does not exist it is created otherwise it is appended. More...
 

Static Private Member Functions

static String setupPaths ()
 Method for setting up the logging directory. The log files are stored in a directory structure based on the current month and year. The filenames are formatted as year_month_day_log.txt. If the corresponding folder does not exist then it is created. More...
 

Detailed Description

This class is used for logging messages to file; typical messages are configuration loaded, seci started etc.

Definition at line 13 of file MessageLogger.cs.

Member Function Documentation

static String Seci.Helpers.MessageLogger.setupPaths ( )
inlinestaticprivate

Method for setting up the logging directory. The log files are stored in a directory structure based on the current month and year. The filenames are formatted as year_month_day_log.txt. If the corresponding folder does not exist then it is created.

Returns
A String containing the directory path

Definition at line 49 of file MessageLogger.cs.

static void Seci.Helpers.MessageLogger.WriteMessage ( String  source,
String  message 
)
inlinestatic

Method for actually writing the message to the file. If the file does not exist it is created otherwise it is appended.

Parameters
sourceThe source of the error
messageThe message

Definition at line 21 of file MessageLogger.cs.


The documentation for this class was generated from the following file: