public static function write($time='', $object='CALL', $message='')
    {
      if (!(self::$on)) {
        return FALSE;
      }

      if (self::$log_file || !isset(self::$log_file)) {
        self::open();
      }


      /** who was the logger called from if we are running on a server **/
      /** this is easy with $_SERVER['PHP_SELF'], if running independatly, **/
      /** we need introspection **/
      if (isset($_SERVER['PHP_SELF'])) {
        $file = realpath($_SERVER['PHP_SELF']);
      } else {
        /** to implement **/
        /** show directory until optimal introspection is found **/
        $file = realpath(__DIR__);
      }
      

      if (is_int($time)) {
        $date = new \DateTime;
        $date->setTimestamp($time);
        $time = $date->format("M/m/y:H:i:s");
      }


      $cli = Client::get();

      $fulltext = "$file ($object) - APPLICATION:" . $cli->application_id . " [$time] - $message" . "\n";

      fwrite(self::$log_file, $fulltext); 
    }