mardi 17 avril 2018

Which design pattern needs to be used to choose a target of log - database or file

We are trying to create a code library which we want to use to log various information like exception, process execution status, API call status etc. Now this should allow write the log in three ways

  • In a log file
  • Calling any API
  • Save in database

In the time of defining the source class, it needs to allow developer to choose the way of saving the log.

Which design pattern we need to follow to achieve this

Aucun commentaire:

Enregistrer un commentaire