     const char* notFound = "NOT_FOUND: ";
 
     if ( request->method() == HTTP_GET )
-      Serial.printf( "%s GET", notFound );
+      ESP_LOGI( TAG, "%s GET", notFound );
     else if (request->method() == HTTP_POST)
-      Serial.printf("%s POST", notFound );
+      ESP_LOGI( TAG, "%s POST", notFound );
     else if (request->method() == HTTP_DELETE)
-      Serial.printf("%s DELETE", notFound );
+      ESP_LOGI( TAG, "%s DELETE", notFound );
     else if (request->method() == HTTP_PUT)
-      Serial.printf("%s PUT", notFound );
+      ESP_LOGI( TAG, "%s PUT", notFound );
     else if (request->method() == HTTP_PATCH)
-      Serial.printf("%s PATCH", notFound );
+      ESP_LOGI( TAG, "%s PATCH", notFound );
     else if (request->method() == HTTP_HEAD)
-      Serial.printf("%s HEAD", notFound );
+      ESP_LOGI( TAG, "%s HEAD", notFound );
     else if (request->method() == HTTP_OPTIONS)
-      Serial.printf("%s OPTIONS", notFound );
+      ESP_LOGI( TAG, "%s OPTIONS", notFound );
     else
-      Serial.printf("%s UNKNOWN", notFound );
-    Serial.printf(" http://%s%s\n", request->host().c_str(), request->url().c_str());
+      ESP_LOGI( TAG, "%s UNKNOWN", notFound );
+    ESP_LOGI( TAG, " http://%s%s\n", request->host().c_str(), request->url().c_str());
     request->send( 404 );
   });
 
   DefaultHeaders::Instance().addHeader( "Access-Control-Allow-Origin", "*" );
 
   server.begin();
-  Serial.println("HTTP server setup done.");
+  ESP_LOGI( TAG, "HTTP server setup done." );
 
   vTaskDelete( NULL );
 }

      if ( request->authenticate( www_username, readStringNVS( passwordKeyNVS, www_default_passw ).c_str() ) )
      {
        startTimer = millis();
        Serial.printf( "Starting upload. filename = %s\n", filename.c_str() );
        if ( !filename.startsWith( "/" ) )
        {
          filename = "/" + filename;


void webServerTask ( void * pvParameters )
{
  ESP_LOGI( TAG, "Starting webserver setup. " );

  server.on( "/api/login", HTTP_POST, []( AsyncWebServerRequest * request )
  {
