class_docstr: Base class for loggers.
  
  Strategy loggers receive MetricValues from the Evaluation plugin and
  decide when and how to log them. MetricValues are processed
  by default using `log_metric` and `log_single_metric`.
  
  Additionally, loggers may implement any callback's handlers supported by
  the plugin's system of the template in use, which will be called
  automatically during the template's execution.
  This allows to control when the logging happen and how. For example,
  interactive loggers typically prints at the end of an
  epoch/experience/stream.
  
  Each child class should implement the `log_single_metric` method, which
  logs a single MetricValue.
docstr: Log a metric value.
  
  This method is called whenever new metrics are available.
  By default, all the values are ignored.
  
  :param name: str, metric name
  :param value: the metric value, will be ignored if
      not supported by the logger
  :param x_plot: an integer representing the x value
      associated to the metric value
docstr_tok: ["Log","a","metric","value",".","This","method","is","called","whenever","new","metrics","are","available",".","By","default",",","all","the","values","are","ignored",".",":","param","name",":","str",",","metric","name",":","param","value",":","the","metric","value",",","will","be","ignored","if","not","supported","by","the","logger",":","param","x_plot",":","an","integer","representing","the","x","value","associated","to","the","metric","value"]
code: def log_single_metric(self, name, value, x_plot):
      """Log a metric value.
  
      This method is called whenever new metrics are available.
      By default, all the values are ignored.
  
      :param name: str, metric name
      :param value: the metric value, will be ignored if
          not supported by the logger
      :param x_plot: an integer representing the x value
          associated to the metric value
      """
      pass
  
file_path: avalanche/avalanche/logging/base_logger.py
imports: from abc import ABC
  from typing import TYPE_CHECKING, List
  from avalanche.distributed.distributed_helper import DistributedHelper
label_desc: Use image node_id 2 for calling the BaseLogger obj's underlying member method code with example usage: obj.log_single_metric(name, value, x_plot) without return types