Skip to main content
Help us improve Python packaging – donate today!

Logging functions used in the CogWorks lab.

Project Description


pycogworks.logging can be installed with ‘pip’:

# pip install pycogworks.logging


pycogworks.logging.getTime, pycogworks.logging.get_time

Returns the most accurate timestamp possible for the current OS.

>>> getTime()
>>> get_time()


Generates a date/time stamp usefull in logs and for log filenames.

>>> getDateTimeStamp()


Takes a dict of subject information and writes a history file. The subject information dict must contain a field called ‘rin’ with a value that contains a valid 9 digit RIN. If the subject information dict does not already contain an ‘encrypted_rin’ field, the RIN will be enrypted and added to the subject information dict under the field ‘encrypted_rin’. The subject information dict is then encoded as a JSON string and written to a file.

>>> writeHistoryFile("test.history",{"foo":"bar","rin":"123456789"})
# cat test.history
  "cipher": "AES/CBC (RIJNDAEL) - 16Byte Key",
  "encrypted_rin": "300fe9abdca99d4a32cb2c43f2a69c5c",
  "foo": "bar",
  "rin": "123456789"

Release history Release notifications

This version
History Node


History Node


History Node


History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
pycogworks.logging-0.4.5.tar.gz (3.1 kB) Copy SHA256 hash SHA256 Source None Nov 12, 2012

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page