Class PrinterSet

  • All Implemented Interfaces:
    Printer

    public class PrinterSet
    extends java.lang.Object
    implements Printer
    Represents a group of Printers that should used to print logs in the same time, each printer may probably print the log to different place.
    • Constructor Summary

      Constructors 
      Constructor Description
      PrinterSet​(Printer... printers)
      Constructor, pass printers in and will use all these printers to print the same logs.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void println​(int logLevel, java.lang.String tag, java.lang.String msg)
      Print log in new line.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PrinterSet

        public PrinterSet​(Printer... printers)
        Constructor, pass printers in and will use all these printers to print the same logs.
        Parameters:
        printers - the printers used to print the same logs
    • Method Detail

      • println

        public void println​(int logLevel,
                            java.lang.String tag,
                            java.lang.String msg)
        Description copied from interface: Printer
        Print log in new line.
        Specified by:
        println in interface Printer
        Parameters:
        logLevel - the level of log
        tag - the tag of log
        msg - the msg of log