예제 #1
0
#  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 
#                               Michael A.G. Aivazis
#                        California Institute of Technology
#                        (C) 1998-2005  All Rights Reserved
# 
#  <LicenseText>
# 
#  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 

if __name__ == "__main__":

    import journal
    from journal import _journal as journalmodule

    print "copyright information:"
    print "   ", journal.copyright()
    print "   ", journalmodule.copyright()

    print
    print "module information:"
    print "    file:", journalmodule.__file__
    print "    doc:", journalmodule.__doc__
    print "    contents:", dir(journalmodule)

# version
__id__ = "$Id: signon.py,v 1.1.1.1 2005/03/08 16:13:54 aivazis Exp $"

#  End of file 
예제 #2
0
# 
#  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 
#                               Michael A.G. Aivazis
#                        California Institute of Technology
#                        (C) 1998-2005  All Rights Reserved
# 
#  <LicenseText>
# 
#  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 

if __name__ == "__main__":

    import journal
    print journal.copyright()

    info = journal.info("info")
    print "state of %s(%s): %s" % (info.facility, info.severity, info.state)
    info.state = True

    info = journal.info("info")
    print "state of %s(%s): %s" % (info.facility, info.severity, info.state)
    info.log("hello")

    print "info facilities:", journal.infoIndex().facilities()


# version
__id__ = "$Id: info.py,v 1.1.1.1 2006-11-27 00:09:40 aivazis Exp $"
예제 #3
0
#
#  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
#                               Michael A.G. Aivazis
#                        California Institute of Technology
#                        (C) 1998-2003 All Rights Reserved
#
#  <LicenseText>
#
#  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#

if __name__ == "__main__":

    import journal
    print journal.copyright()

    info = journal.info("info-1")
    debug = journal.debug("debug")
    info = journal.info("info-2")

    print "state of %s(%s): %s" % (info.name, info.facility, info.state)
    info.activate()
    print "state of %s(%s): %s" % (info.name, info.facility, info.state)

    info.log("hello")

    print "info categories:", journal.infoIndex().categories()
    print "debug categories:", journal.debugIndex().categories()

# version
예제 #4
0
#  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 
#                               Michael A.G. Aivazis
#                        California Institute of Technology
#                        (C) 1998-2005  All Rights Reserved
# 
#  <LicenseText>
# 
#  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 

if __name__ == "__main__":

    import journal
    from journal import _journal as journalmodule

    print "copyright information:"
    print "   ", journal.copyright()
    print "   ", journalmodule.copyright()

    print
    print "module information:"
    print "    file:", journalmodule.__file__
    print "    doc:", journalmodule.__doc__
    print "    contents:", dir(journalmodule)

# version
__id__ = "$Id: signon.py,v 1.1.1.1 2006-11-27 00:09:40 aivazis Exp $"

#  End of file