Module: TLA2DOT::Utils::MyLogger

Included in:
Cli, Template
Defined in:
lib/utils/logger.rb

Defined Under Namespace

Classes: NullLoger

Constant Summary collapse

LOGFILE =
"tla2dot.log"

Instance Method Summary collapse

Instance Method Details

#getLogger(progname, options = {}) ⇒ Object



23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/utils/logger.rb', line 23

def getLogger( progname, options={} ) 

  level = get_level( options )

  if level.nil? 

    return NullLoger.new 

  else
    
    logger = Logger.new( LOGFILE )
    logger.level=level
    logger.progname = progname
    return logger

  end 

end