Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 36 of 36 for log (0.26 sec)

  1. docs/zh/docs/tutorial/background-tasks.md

    === "Python 3.8+ 没Annotated"
    
        !!! tip
             尽可能选择使用 `Annotated` 的版本。
    
        ```Python hl_lines="13  15  22  25"
        {!> ../../../docs_src/background_tasks/tutorial002.py!}
        ```
    
    该示例中,信息会在响应发出 *之后* 被写到 `log.txt` 文件。
    
    如果请求中有查询,它将在后台任务中写入日志。
    
    然后另一个在 *路径操作函数* 生成的后台任务会使用路径参数 `email` 写入一条信息。
    
    ## 技术细节
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 5K bytes
    - Viewed (0)
  2. docs/zh/docs/deployment/deta.md

    ## 使用 CLI 登录
    
    现在,使用 CLI 登录 Deta:
    
    <div class="termy">
    
    ```console
    $ deta login
    
    Please, log in from the web page. Waiting..
    Logged in successfully.
    ```
    
    </div>
    
    这个命令会打开浏览器并自动验证身份。
    
    ## 使用 Deta 部署
    
    接下来,使用 Deta CLI 部署应用:
    
    <div class="termy">
    
    ```console
    $ deta new
    Plain Text
    - Registered: Sun Mar 31 07:19:09 GMT 2024
    - Last Modified: Sun Jan 28 18:06:55 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  3. docs/ko/docs/tutorial/background-tasks.md

        ```
    
    === "Python 3.10 and above"
    
        ```Python hl_lines="11  13  20  23"
        {!> ../../../docs_src/background_tasks/tutorial002_py310.py!}
        ```
    
    이 예제에서는 응답이 반환된 후에 `log.txt` 파일에 메시지가 기록됩니다.
    
    요청에 쿼리가 있는 경우 백그라운드 작업의 로그에 기록됩니다.
    
    그리고 _경로 작동 함수_ 에서 생성된 또 다른 백그라운드 작업은 경로 매개 변수를 활용하여 사용하여 메시지를 작성합니다.
    
    ## 기술적 세부사항
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Feb 11 13:48:31 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  4. docs/em/docs/tutorial/background-tasks.md

        ```
    
    === "🐍 3️⃣.1️⃣0️⃣ &amp; 🔛"
    
        ```Python hl_lines="11  13  20  23"
        {!> ../../../docs_src/background_tasks/tutorial002_py310.py!}
        ```
    
    👉 🖼, 📧 🔜 ✍ `log.txt` 📁 *⏮️* 📨 📨.
    
    🚥 📤 🔢 📨, ⚫️ 🔜 ✍ 🕹 🖥 📋.
    
    &amp; ⤴️ ➕1️⃣ 🖥 📋 🏗 *➡ 🛠️ 🔢* 🔜 ✍ 📧 ⚙️ `email` ➡ 🔢.
    
    ## 📡 ℹ
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  5. docs/en/docs/advanced/events.md

    ```Python hl_lines="6"
    {!../../../docs_src/events/tutorial002.py!}
    ```
    
    Here, the `shutdown` event handler function will write a text line `"Application shutdown"` to a file `log.txt`.
    
    !!! info
        In the `open()` function, the `mode="a"` means "append", so, the line will be added after whatever is on that file, without overwriting the previous contents.
    
    !!! tip
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  6. docs/em/docs/advanced/events.md

    🚮 🔢 👈 🔜 🏃 🕐❔ 🈸 🤫 🔽, 📣 ⚫️ ⏮️ 🎉 `"shutdown"`:
    
    ```Python hl_lines="6"
    {!../../../docs_src/events/tutorial002.py!}
    ```
    
    📥, `shutdown` 🎉 🐕‍🦺 🔢 🔜 ✍ ✍ ⏸ `"Application shutdown"` 📁 `log.txt`.
    
    !!! info
         `open()` 🔢, `mode="a"` ⛓ "🎻",, ⏸ 🔜 🚮 ⏮️ ⚫️❔ 🔛 👈 📁, 🍵 📁 ⏮️ 🎚.
    
    !!! tip
        👀 👈 👉 💼 👥 ⚙️ 🐩 🐍 `open()` 🔢 👈 🔗 ⏮️ 📁.
    
        , ⚫️ 🔌 👤/🅾 (🔢/🔢), 👈 🚚 "⌛" 👜 ✍ 💾.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6.2K bytes
    - Viewed (0)
Back to top