ForceBalance API  1.3
Automated optimization of force fields and empirical potentials
List of all members | Public Member Functions | Public Attributes
src.output.ForceBalanceLogger Class Reference

This logger starts out with a default handler that writes to stdout addHandler removes this default the first time another handler is added. More...

Inheritance diagram for src.output.ForceBalanceLogger:
[legend]
Collaboration diagram for src.output.ForceBalanceLogger:
[legend]

Public Member Functions

def __init__ (self, name)
 
def addHandler (self, hdlr)
 
def removeHandler (self, hdlr)
 

Public Attributes

 defaultHandler
 
 propagate
 

Detailed Description

This logger starts out with a default handler that writes to stdout addHandler removes this default the first time another handler is added.

This is used for forcebalance package level logging, where a logger should always be present unless otherwise specified. To silence, add a NullHandler We also by default set the log level to INFO (logging.Logger starts at WARNING)

Definition at line 10 of file output.py.

Constructor & Destructor Documentation

◆ __init__()

def src.output.ForceBalanceLogger.__init__ (   self,
  name 
)

Definition at line 11 of file output.py.

Member Function Documentation

◆ addHandler()

def src.output.ForceBalanceLogger.addHandler (   self,
  hdlr 
)

Definition at line 18 of file output.py.

Here is the call graph for this function:

◆ removeHandler()

def src.output.ForceBalanceLogger.removeHandler (   self,
  hdlr 
)

Definition at line 24 of file output.py.

Here is the call graph for this function:

Member Data Documentation

◆ defaultHandler

src.output.ForceBalanceLogger.defaultHandler

Definition at line 13 of file output.py.

◆ propagate

src.output.ForceBalanceLogger.propagate

Definition at line 16 of file output.py.


The documentation for this class was generated from the following file: