Ankush Menat
81b37cb7d2
refactor: clean up code to py310 supported features ( #17367 )
...
refactor: clean up code to py39+ supported syntax
- f-strings instead of format
- latest typing support instead of pre 3.9 TitleCase
- remove UTF-8 declarations.
- many more changes
Powered by https://github.com/asottile/pyupgrade/ + manual cleanups
2022-07-01 11:51:05 +05:30
gavin
88592eac5d
fix!: Set default logging level ERROR when DEV_SERVER envvar is unset
2022-06-07 15:56:26 +05:30
Suraj Shetty
c0c5b2ebdd
style: format all python files using black ( #16453 )
...
Co-authored-by: Frappe Bot <developers@frappe.io>
2022-04-12 10:59:25 +05:30
Gavin D'souza
22fc955e65
fix: Tabs > Spaces
2022-03-23 13:37:41 +05:30
Carlos Ríos
e8fdca8698
feat(logger): implement stream_only to use StreamHandler instead of RotatingFileHandler ( #16274 )
...
* feat: implement valued parameter 'stream_only' in 'get_logger()' in order to stream logs into stderr instead rotating log files.
Co-authored-by: gavin <gavin18d@gmail.com>
2022-03-23 13:37:12 +05:30
Gavin D'souza
e407b78506
chore: Drop dead and deprecated code
...
* Remove six for PY2 compatability since our dependencies are not, PY2
is legacy.
* Removed usages of utils from future/past libraries since they are
deprecated. This includes 'from __future__ ...' and 'from past...'
statements.
* Removed compatibility imports for PY2, switched from six imports to
standard library imports.
* Removed utils code blocks that handle operations depending on PY2/3
versions.
* Removed 'from __future__ ...' lines from templates/code generators
* Used PY3 syntaxes in place of PY2 compatible blocks. eg: metaclass
2021-05-26 15:31:29 +05:30
Gavin D'souza
4b93f75eba
fix: Log site only if exists
2020-08-03 17:23:32 +05:30
Gavin D'souza
a87531e1d0
fix(get_logger): allow None for module
2020-07-31 17:26:37 +05:30
Gavin D'souza
f04ce5dd7a
chore: Typo
2020-07-31 16:11:39 +05:30
Gavin D'souza
94116ae93c
feat(logger): allow max_size and file_count params
2020-07-31 16:07:51 +05:30
Gavin D'souza
faa9a5466e
fix: Slider
2020-07-30 19:04:04 +05:30
Gavin D'souza
fac7f359ae
fix: original log format + EAFP
2020-07-30 18:49:59 +05:30
Gavin D'souza
090b81f2f2
style: black + restructure
2020-07-30 17:59:01 +05:30
Gavin D'souza
7bf69c62c1
fix: suffix logger name with site
2020-07-30 17:47:01 +05:30
Gavin D'souza
ae3ee5b2eb
fix: save frappe loggers site wise
2020-07-29 13:33:04 +05:30
Gavin D'souza
1345c2feb3
feat: Allow_site flag in frappe.logger
2020-07-27 17:31:12 +05:30
Gavin D'souza
ad1152f8e8
feat: override site name via _site
...
added filter parameter for logger
2020-07-27 17:13:18 +05:30
Gavin D'souza
c87d598480
refactor: less word do trick
...
Co-authored-by: Chinmay Pai <chinmaydpai@gmail.com>
2020-07-17 17:35:08 +05:30
Gavin D'souza
e92a612ba2
docs(get_logger): add docstring
2020-07-16 16:41:18 +05:30
Gavin D'souza
476e625261
fix: Add site validation for logger
2020-07-16 16:26:20 +05:30
Gavin D'souza
746b540af8
fix: Add Form Dict information only for frappe.log
2020-05-27 19:09:18 +05:30
Gavin D'souza
c39a52d764
feat: seperate loggers into frappe, web, scheduler categories and not by
...
module
2020-05-27 18:33:03 +05:30
Gavin D'souza
627940c56b
feat: site wise logs under sites/{sitename}/logs/frappe.log
2020-05-05 18:58:38 +05:30
Chinmay D. Pai
1bd5c916ce
chore: separate frappe log by site
...
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-04-22 16:23:02 +05:30
Aditya Hase
e6bd1e4995
Replaced all instances of 'unicode' with 'six.text_type' ( #3825 )
2017-08-02 16:57:39 +05:30
Rushabh Mehta
0bdb4b6ec8
[fix] longer error logs
2016-10-05 17:57:26 +05:30
Rushabh Mehta
e091005b00
[logger] fix tests
2016-09-29 11:44:07 +05:30
Rushabh Mehta
527115ce07
[logger] log in logs/frappe.log
2016-09-29 11:40:00 +05:30
Rushabh Mehta
ce88a60153
[logger] log in logs/frappe.log
2016-09-29 11:30:29 +05:30
Anand Doshi
9800ac2d0a
[cleanup] simpler logging system that does not affect other loggers
2016-05-06 20:28:10 +05:30