Eel Python : VS code isn’t printing anything when button is triggered

I have been trying to print hello world on the VS code terminal when my button is pressed. The javascript code takes the input from an HTML button and passes to python through Eel

my HTML code –

<button
type="button"
id="setuplogger"
style="background-color: #dd9000"
class="btn btn-dark"
onclick="setuplogger_fnc()"
>

My JS code —

function setuplogger_fnc() {
     
  eel.logger()(return_msg);

};

function return_msg() {
  console.log('returned hello')
}

My python Eel code –

@eel.expose
def logger():
    print("hello world")

    return "hello"

The code is returning “hello” back to the JS but isn’t printing anything on VS code. Can anyone explain why?