Skip to main content

An easy to use helper pip package to help you log details at any point in code.

Project description

plain_logger - Make logging simple and easy

An easy to use helper pip package to help you log details at any point in code.


  • Assuming python is installed on your system.


Install plain_logger on your system using :

pip install plain_logger



Logs data with 'INFO' tag.


Logs data with 'WARN' tag.


Logs data with 'ERROR' tag.


Logs data with 'DEBUG' tag.


Logs data with a custom tag.


from Logger.Logger import Logger

def foo():
        fname = "John"
        lname = "Doe"
        Logger.LogInfo ("Name = {} {}".format(fname, lname))

        x = 0
        Logger.LogDebug("x = {}".format(x))

        y = -1
        Logger.LogWarn("Something may be wrong.")

        raise ValueError('A very specific bad thing happened.')

    except Exception as e:
        Logger.LogError("Exception occurred: {}".format(str(e)))



[2019-02-09 22:31:55] INFO : Test
[2019-02-09 22:31:55] WARN : Test
[2019-02-09 22:31:55] ERROR : Test
[2019-02-09 22:31:55] DEBUG : Test
[2019-02-09 22:31:55] DEBUG : Test, TAG
[2019-02-09 22:31:55] INFO : Name = John Doe
[2019-02-09 22:31:55] DEBUG : x = 0
[2019-02-09 22:31:55] WARN : Something may be wrong.
[2019-02-09 22:31:55] ERROR : Exception occurred: A very specific bad thing happened.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

plain_logger-0.1.5-py3-none-any.whl (4.0 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page