使用leancloud存储运行日志

  • 申请 leancloud 应用。

ref: https://console.leancloud.cn/apps

  • 安装 pip install leancloud
1
2
3
4
5
6
7
8
9
10
11
12

import leancloud

leancloud.init("xxx", "yyy")

TestObject = leancloud.Object.extend('my_log')
test_object = TestObject()
test_object.set('col1', 'a')
test_object.set('col2', 'b')
test_object.set('col3', 'c')
test_object.save()