---

** [tickets:#2148] log: Refactor handling of writing log records**

**Status:** unassigned
**Milestone:** 5.2.FC
**Created:** Fri Oct 28, 2016 12:08 PM UTC by elunlen
**Last Updated:** Fri Oct 28, 2016 12:08 PM UTC
**Owner:** nobody


Refactor handling for saving log records
How log records are written is of no interest in the rest of the log service so 
a common api for saving log records could be used. This api only have to 
receive a formatted log record string, the log stream identity and return 
information whether it succeeded or not. A setting api at this level may be 
needed if log records can be written in several ways. The setting could then be 
whether the log records shall be written to file only or to both file and/or 
someplace else etc.
Encapsulate all handling of the actual writing to file. This handling includes 
file rotation, .cfg file handling etc. The existing file I/O thread can be 
removed if this handling is done in a separate thread. This handling is also 
dependent on some settings e.g. path to directory where log file shall be 
written, changes of format string (.cfg file has to be updated). A separate 
settings api for settings must be defined. For writing log records the common 
api shall be used
If other handling for writing log records shall be added also that 
implementation shall be encapsulated in a similar manner.  May also need a 
settings api but for writing log records the common api shall be used.



---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to