Level up your Twilio API skills in TwilioQuest, an educational game for Mac, Windows, and Linux. Download Now

メニュー

Expand
Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

Logs - Coming Soon

The Logs endpoint is coming soon!

The logs endpoint shows any debug logs produced by executed Functions. To have logs show up on this endpoint, add

console.log("This is a log message from my function")

to your Function code and invoke it. The log line will show up at the /Logs endpoint.

Getting Logs from Functions

For Functions created via the API, you can show live logs for debugging by loading the API overview page and clicking the Show Logs link. Note: The Show logs link will only be visible if you have a live build associated with your environment via a deployment.

Log properties

Names in PHP format
sid
sid<NO> Not PII

The unique SID identifier of this Log.

accountSid
sid<AC> Not PII

The unique SID identifier of the Account that owns this Log.

serviceSid
sid<ZS> Not PII

The unique SID identifier of the Service for this Log.

environmentSid
sid<ZE> Not PII

The unique SID identifier of the Environment in which this Log occurred.

deploymentSid
sid<ZD> Not PII

The unique SID identifier of the Deployment corresponding to this Log.

functionSid
sid<ZH> Not PII

The unique SID identifier of the Function whose invocation produced this Log.

requestSid
sid<RQ> Not PII

level
enum:level Not PII

message
文字列 Not PII

dateCreated
date_time<iso8601> Not PII

The date that this Log was created, given in ISO 8601 format.

url
url Not PII

The URL of this Log.

Fetch a Log resource

GET
https://serverless.twilio.com/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Logs/{Sid}
パラメーター
Names in None format
service_sid
必須
GET sid_like<ZS> Not PII

The unique SID identifier of the Service for this Log.

environment_sid
必須
GET sid<ZE> Not PII

The unique SID identifier of the Environment in which this Log occurred.

sid
必須
GET sid<NO> Not PII

The unique SID identifier of this Log.

        
        
        
        

        Read multiple Log resources

        GET
        https://serverless.twilio.com/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Logs
        パラメーター
        Names in None format
        service_sid
        必須
        GET sid_like<ZS> Not PII

        The unique SID identifier of the Service for these Logs.

        environment_sid
        必須
        GET sid<ZE> Not PII

        The unique SID identifier of the Environment in which these Logs occurred.

        function_sid
        オプション
        GET sid<ZH> Not PII

        The unique SID identifier of the Function whose invocation produced this Log.

              
              
              
              
              Rate this page:

              ヘルプが必要ですか?

              誰しもが一度は考える「コーディングって難しい」。そんな時は、お問い合わせフォームから質問してください。 または、Stack Overflow でTwilioタグのついた情報から欲しいものを探してみましょう。