Class Logger


  • public class Logger
    extends java.lang.Object
    Logs received messages to a file.
    • Constructor Summary

      Constructors 
      Constructor Description
      Logger​(@NotNull CrossfireServerConnection crossfireServerConnection, @Nullable java.lang.String hostname, boolean enabled)
      Create a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setHostname​(@Nullable java.lang.String hostname)
      Updates the hostname.
      • Methods inherited from class java.lang.Object

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

      • Logger

        public Logger​(@NotNull
                      @NotNull CrossfireServerConnection crossfireServerConnection,
                      @Nullable
                      @Nullable java.lang.String hostname,
                      boolean enabled)
        Create a new instance.
        Parameters:
        crossfireServerConnection - the server connection to monitor
        hostname - the hostname
        enabled - whether the message logger is enabled
    • Method Detail

      • setHostname

        public void setHostname​(@Nullable
                                @Nullable java.lang.String hostname)
        Updates the hostname.
        Parameters:
        hostname - the new hostname