TreeMig Code
Loading...
Searching...
No Matches
loggermodule Module Reference

LoggerModule. More...

Functions/Subroutines

subroutine initlogger (log_file)
 InitLogger

 
subroutine stoplogger ()
 StopLogger

 
subroutine logerror (msg)
 LogError

 
subroutine logwarning (msg)
 LogError

 
subroutine loginfo (msg)
 LogInfo

 
subroutine logall (msgtype, msg)
 logAll

 

Variables

character(len=1024) logmessage
 

Detailed Description

LoggerModule.



all kinds of logging (i.e. recording and outputting) errors and message, on screen and as file

Function/Subroutine Documentation

◆ initlogger()

subroutine loggermodule::initlogger ( type(file), intent(in) log_file)

InitLogger


opens and prepares the log file

  • USE: FileHandlingModule
  • IN:
    • Parameters
      Log_file: file where logs should be outputted
    • FROM FileHandlingModule
      • File : TYPE : explanation
  • OUT:
    • via LoggerModule
      • initialized : LOGICAL : flag, file is initialized
  • CALLS support routines:
  • CALLED FROM:
    • various subroutines

Definition at line 39 of file LoggerModule.f90.

◆ logall()

subroutine loggermodule::logall ( character(len=*), intent(in) msgtype,
character(len=*), intent(in) msg )

logAll


writes out a message to the screen and to the logfile

  • USE: FileHandlingModule
  • IN:
    • Parameters
      msgType: type of message
      msg: message
  • CALLS support routines:
    • date_and_time from FORTRAN
  • CALLED FROM:
    • various subroutines

Definition at line 134 of file LoggerModule.f90.

◆ logerror()

subroutine loggermodule::logerror ( character(len=*), intent(in) msg)

LogError


writes out an error message to all media (file, screen)

  • USE: FileHandlingModule
  • IN:
    • Parameters
      msg: error message
  • CALLS support routines:
  • CALLED FROM:
    • various subroutines

Definition at line 82 of file LoggerModule.f90.

◆ loginfo()

subroutine loggermodule::loginfo ( character(len=*), intent(in) msg)

LogInfo


writes out an information message to all media (file, screen)

  • USE: FileHandlingModule
  • IN:
    • Parameters
      msg: information message
  • CALLS support routines:
  • CALLED FROM:
    • various subroutines

Definition at line 116 of file LoggerModule.f90.

◆ logwarning()

subroutine loggermodule::logwarning ( character(len=*), intent(in) msg)

LogError


writes out a warning message to all media (file, screen)

  • USE: FileHandlingModule
  • IN:
    • Parameters
      msg: warning message
  • CALLS support routines:
  • CALLED FROM:
    • various subroutines

Definition at line 99 of file LoggerModule.f90.

◆ stoplogger()

subroutine loggermodule::stoplogger

StopLogger


closes the log file

  • USE: FileHandlingModule
  • IN:
    • Parameters
      Log_file: file where logs should be outputted
    • FROM FileHandlingModule
      • File : TYPE : explanation
  • OUT:
    • via LoggerModule
      • initialized : LOGICAL : flag, file is initialized
  • CALLS support routines:
  • CALLED FROM:
    • various subroutines

Definition at line 64 of file LoggerModule.f90.

Variable Documentation

◆ logmessage

character(len=1024) loggermodule::logmessage

Definition at line 16 of file LoggerModule.f90.