mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-29 12:03:52 -06:00
34 lines
691 B
C++
34 lines
691 B
C++
//////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// pgAdmin 4 - PostgreSQL Tools
|
|
//
|
|
// Copyright (C) 2013 - 2021, The pgAdmin Development Team
|
|
// This software is released under the PostgreSQL Licence
|
|
//
|
|
// Logger.h - Logger Utility
|
|
//
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef LOGGER_H
|
|
#define LOGGER_H
|
|
|
|
#include <QObject>
|
|
#include <QFile>
|
|
|
|
class Logger : public QObject
|
|
{
|
|
public:
|
|
static Logger* GetLogger();
|
|
static void ReleaseLogger();
|
|
void Log(const QString& sMessage) const;
|
|
|
|
private:
|
|
Logger();
|
|
virtual ~Logger();
|
|
|
|
static Logger* m_pThis;
|
|
static QFile *m_Logfile;
|
|
};
|
|
|
|
#endif // LOGGER_H
|