Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 4.19 KB | None | 0 0
  1.         /*
  2.          * These are properties we will generate from the config file organized
  3.          * in the same order as in the logging.config with the appropriate
  4.          * config key names and their purposes
  5.          */
  6.  
  7.         /*
  8.          * === FILE SETTINGS ===
  9.          */
  10.  
  11.         // file_path : The folder we are creating log files in.
  12.         //      Example: "/home/pi/Desktop/InterfaceControlBoard/logs/"
  13.         public string FilePath { get; }
  14.  
  15.         // file_prefix : The static text log files start with.
  16.         //      Example: "log_"
  17.         public string FilePrefix { get; }
  18.  
  19.         // file_timeformat : The date and time format logs are made with. These
  20.         //      are subject to the formatting specifications of C#'s DateTime.
  21.         //      Now.ToString(string) method.
  22.         //      Note: If a file with the desired date already exists, we append
  23.         //      to it. If it does not, we create it.
  24.         //      Example: "yyyy-MM-dd_hh:mm:ss_tt"
  25.         public string FileTimeformat { get; }
  26.  
  27.         // file_suffix : The static text log files end with. You should put your
  28.         //      desired file extension here.
  29.         //      Example: ".log"
  30.         public string FileSuffix { get; }
  31.  
  32.         // file_error_prefix : The prefix used in error logs only. May be the
  33.         //      same as that of the regular logs.
  34.         //      Example: "error_log_"
  35.         public string FileErrorPrefix { get; }
  36.  
  37.         // file_error_suffix : The suffix used in error logs only. May be the
  38.         //      same as that of the regular logs.
  39.         //      Example: ".err"
  40.         public string FileErrorSuffix { get; }
  41.        
  42.         /*
  43.          * === EVENT SETTINGS ===
  44.          */
  45.  
  46.         // event_prefix : The static text appended before each log event. May
  47.         //      be blank. This accepts \n.
  48.         //      Example: "Log "
  49.         public string EventPrefix { get; }
  50.  
  51.         // event_number_bool : Whether or not to number each log event. This
  52.         //      accepts \n characters.
  53.         //      Example: "false"
  54.         public bool EventNumberIsEnabled { get; }
  55.        
  56.         // event_number_suffix : Static text appended after the event number is
  57.         //      printed. If the event number is set not to print, this does
  58.         //      nothing.
  59.         //      Example: " @"
  60.  
  61.         public string EventNumberSuffix { get; }
  62.  
  63.         // event_timeformat : The date and time log events are made with,
  64.         //      subject to the same C# DateTime.Now.ToString(string) formatting
  65.         //      specifications as those of the file_timeformat key.
  66.         //      Example: "hh:mm:ss tt"
  67.         public string EventTimeformat { get; }
  68.        
  69.         // event_time_suffix : Static text appended after the date is printed.
  70.         //      Example: " : "
  71.         public string EventTimeSuffix { get; }
  72.  
  73.         // event_suffix : Static text appended after the body of the log event.
  74.         //      This accepts \n characters, and is recommended that you use one
  75.         //      unless you would like every single log event to be on the same
  76.         //      line.
  77.         //      Example: "\n"
  78.         public string EventSuffix { get; }
  79.        
  80.         // event_both_errors_bool : Determine whether or not the errors logged
  81.         //      by the program show up in regular logs as well as dedicated
  82.         //      error logs. At this time, error logs will ALWAYS be sent to AT
  83.         //      LEAST the dedicated error log.
  84.         //      Example: "false"
  85.         public bool EventErrorsBothIsEnabled { get; }
  86.        
  87.         // event_error_prefix : Static text appended to the beginning of error
  88.         //      events in place of the regular event_prefix. This accepts \n
  89.         //      characters.
  90.         //      Example: "ERROR "
  91.         public string EventErrorPrefix { get; }
  92.  
  93.         // event_error_suffix : Static text appended to the end of error events
  94.         //      in place of the regular event_suffix. This accepts \n characters
  95.         //      and it is recommended that you use one for the same reasons as
  96.         //      specified for event_suffix.
  97.         //      Example: "\n"
  98.         public string EventErrorSuffix { get; }
  99.        
  100.         // event_verbose_bool : Changes the logging behavior of the LogManager
  101.         //      to provide more detail than usual when enabled. As of writing,
  102.         //      this most notably affects the CCB status change.
  103.         //      Example: "false"
  104.         public bool EventVerboseIsEnabled { get; }
  105.        
  106.         /*
  107.          * === CONSOLE OUTPUT SETTINGS ===
  108.          */
  109.  
  110.         // console_echo_bool : Changes whether or not log and error events are
  111.         //      reported to the Raspberry Pi's console window in addition to
  112.         //      the log and error files.
  113.         //      Example: "true"
  114.         public bool ConsoleEchoIsEnabled { get; }
  115.        
  116.         // end of properties
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement