C++ - Logging statements according to the level
<p>I have the following statements:</p>

<pre><code>static Logging::Logger* common_logger = new Logging::Logger(Logging::Logger::LEVEL);
</code></pre>

<p>In the Logger.h i have</p>

<pre><code>  class Logger {
public:

    enum LEVEL {
        Debug,
        Warning,
        Notification,
        Error
    };
  }
</code></pre>

<p>I have included the file Logger.h inside my another class as :</p>

<pre><code>    Logging::log(CustomDialog::logger, Logging::Entry, CustomDialog::CLASSNAME, "CustomDialog");
</code></pre>

<p>I need to know if this is the right way to do the reason why i am doing this is to get logs based upon the level.</p>

<p>Regards,</p>
