# ask-ai

Andrea Montes

03/08/2024, 7:42 PM
@Scout can I add logging messages to a schedule?


03/08/2024, 7:42 PM
Yes, you can add logging messages to a schedule in Dagster. Any schedule can emit log messages during its evaluation function. Here's an example from the documentation on how to do this:
Copy code
python from dagster import schedule  @schedule(job=my_job, cron_schedule="* * * * *") def logs_then_skips(context):     <|>("Logging from a schedule!")     return SkipReason("Nothing to do")
These logs can be viewed when inspecting a tick in the tick history view on the corresponding schedule page in the Dagster UI. Make sure that your Dagster instance's compute log storage is configured properly to view your schedule logs.