Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * These are properties we will generate from the config file organized
- * in the same order as in the logging.config with the appropriate
- * config key names and their purposes
- */
- /*
- * === FILE SETTINGS ===
- */
- // file_path : The folder we are creating log files in.
- // Example: "/home/pi/Desktop/InterfaceControlBoard/logs/"
- public string FilePath { get; }
- // file_prefix : The static text log files start with.
- // Example: "log_"
- public string FilePrefix { get; }
- // file_timeformat : The date and time format logs are made with. These
- // are subject to the formatting specifications of C#'s DateTime.
- // Now.ToString(string) method.
- // Note: If a file with the desired date already exists, we append
- // to it. If it does not, we create it.
- // Example: "yyyy-MM-dd_hh:mm:ss_tt"
- public string FileTimeformat { get; }
- // file_suffix : The static text log files end with. You should put your
- // desired file extension here.
- // Example: ".log"
- public string FileSuffix { get; }
- // file_error_prefix : The prefix used in error logs only. May be the
- // same as that of the regular logs.
- // Example: "error_log_"
- public string FileErrorPrefix { get; }
- // file_error_suffix : The suffix used in error logs only. May be the
- // same as that of the regular logs.
- // Example: ".err"
- public string FileErrorSuffix { get; }
- /*
- * === EVENT SETTINGS ===
- */
- // event_prefix : The static text appended before each log event. May
- // be blank. This accepts \n.
- // Example: "Log "
- public string EventPrefix { get; }
- // event_number_bool : Whether or not to number each log event. This
- // accepts \n characters.
- // Example: "false"
- public bool EventNumberIsEnabled { get; }
- // event_number_suffix : Static text appended after the event number is
- // printed. If the event number is set not to print, this does
- // nothing.
- // Example: " @"
- public string EventNumberSuffix { get; }
- // event_timeformat : The date and time log events are made with,
- // subject to the same C# DateTime.Now.ToString(string) formatting
- // specifications as those of the file_timeformat key.
- // Example: "hh:mm:ss tt"
- public string EventTimeformat { get; }
- // event_time_suffix : Static text appended after the date is printed.
- // Example: " : "
- public string EventTimeSuffix { get; }
- // event_suffix : Static text appended after the body of the log event.
- // This accepts \n characters, and is recommended that you use one
- // unless you would like every single log event to be on the same
- // line.
- // Example: "\n"
- public string EventSuffix { get; }
- // event_both_errors_bool : Determine whether or not the errors logged
- // by the program show up in regular logs as well as dedicated
- // error logs. At this time, error logs will ALWAYS be sent to AT
- // LEAST the dedicated error log.
- // Example: "false"
- public bool EventErrorsBothIsEnabled { get; }
- // event_error_prefix : Static text appended to the beginning of error
- // events in place of the regular event_prefix. This accepts \n
- // characters.
- // Example: "ERROR "
- public string EventErrorPrefix { get; }
- // event_error_suffix : Static text appended to the end of error events
- // in place of the regular event_suffix. This accepts \n characters
- // and it is recommended that you use one for the same reasons as
- // specified for event_suffix.
- // Example: "\n"
- public string EventErrorSuffix { get; }
- // event_verbose_bool : Changes the logging behavior of the LogManager
- // to provide more detail than usual when enabled. As of writing,
- // this most notably affects the CCB status change.
- // Example: "false"
- public bool EventVerboseIsEnabled { get; }
- /*
- * === CONSOLE OUTPUT SETTINGS ===
- */
- // console_echo_bool : Changes whether or not log and error events are
- // reported to the Raspberry Pi's console window in addition to
- // the log and error files.
- // Example: "true"
- public bool ConsoleEchoIsEnabled { get; }
- // end of properties
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement