Show More
@@ -356,7 +356,7 b' script_location = kallithea:alembic' | |||||
356 | keys = root, routes, kallithea, sqlalchemy, tg, gearbox, beaker, templates, whoosh_indexer, werkzeug, backlash |
|
356 | keys = root, routes, kallithea, sqlalchemy, tg, gearbox, beaker, templates, whoosh_indexer, werkzeug, backlash | |
357 |
|
357 | |||
358 | [handlers] |
|
358 | [handlers] | |
359 | keys = console, console_sql |
|
359 | keys = console, console_color, console_color_sql, null | |
360 |
|
360 | |||
361 | [formatters] |
|
361 | [formatters] | |
362 | keys = generic, color_formatter, color_formatter_sql |
|
362 | keys = generic, color_formatter, color_formatter_sql | |
@@ -367,7 +367,10 b' keys = generic, color_formatter, color_f' | |||||
367 |
|
367 | |||
368 | [logger_root] |
|
368 | [logger_root] | |
369 | level = NOTSET |
|
369 | level = NOTSET | |
370 | handlers = console |
|
370 | #handlers = console | |
|
371 | handlers = console_color | |||
|
372 | # For coloring based on log level: | |||
|
373 | # handlers = console_color | |||
371 |
|
374 | |||
372 | [logger_routes] |
|
375 | [logger_routes] | |
373 | #level = WARN |
|
376 | #level = WARN | |
@@ -408,9 +411,12 b' qualname = gearbox' | |||||
408 |
|
411 | |||
409 | [logger_sqlalchemy] |
|
412 | [logger_sqlalchemy] | |
410 | level = WARN |
|
413 | level = WARN | |
411 |
handlers = |
|
414 | handlers = | |
412 | qualname = sqlalchemy.engine |
|
415 | qualname = sqlalchemy.engine | |
413 | propagate = 0 |
|
416 | # For coloring based on log level and pretty printing of SQL: | |
|
417 | # level = INFO | |||
|
418 | # handlers = console_color_sql | |||
|
419 | # propagate = 0 | |||
414 |
|
420 | |||
415 | [logger_whoosh_indexer] |
|
421 | [logger_whoosh_indexer] | |
416 | #level = WARN |
|
422 | #level = WARN | |
@@ -435,15 +441,24 b' qualname = backlash' | |||||
435 | [handler_console] |
|
441 | [handler_console] | |
436 | class = StreamHandler |
|
442 | class = StreamHandler | |
437 | args = (sys.stderr,) |
|
443 | args = (sys.stderr,) | |
438 |
|
|
444 | formatter = generic | |
|
445 | ||||
|
446 | [handler_console_color] | |||
|
447 | # ANSI color coding based on log level | |||
|
448 | class = StreamHandler | |||
|
449 | args = (sys.stderr,) | |||
439 | formatter = color_formatter |
|
450 | formatter = color_formatter | |
440 |
|
451 | |||
441 | [handler_console_sql] |
|
452 | [handler_console_color_sql] | |
|
453 | # ANSI color coding and pretty printing of SQL statements | |||
442 | class = StreamHandler |
|
454 | class = StreamHandler | |
443 | args = (sys.stderr,) |
|
455 | args = (sys.stderr,) | |
444 | #formatter = generic |
|
|||
445 | formatter = color_formatter_sql |
|
456 | formatter = color_formatter_sql | |
446 |
|
457 | |||
|
458 | [handler_null] | |||
|
459 | class = NullHandler | |||
|
460 | args = () | |||
|
461 | ||||
447 | ################ |
|
462 | ################ | |
448 | ## FORMATTERS ## |
|
463 | ## FORMATTERS ## | |
449 | ################ |
|
464 | ################ |
@@ -537,7 +537,7 b' script_location = kallithea:alembic' | |||||
537 | keys = root, routes, kallithea, sqlalchemy, tg, gearbox, beaker, templates, whoosh_indexer, werkzeug, backlash |
|
537 | keys = root, routes, kallithea, sqlalchemy, tg, gearbox, beaker, templates, whoosh_indexer, werkzeug, backlash | |
538 |
|
538 | |||
539 | [handlers] |
|
539 | [handlers] | |
540 | keys = console, console_sql |
|
540 | keys = console, console_color, console_color_sql, null | |
541 |
|
541 | |||
542 | [formatters] |
|
542 | [formatters] | |
543 | keys = generic, color_formatter, color_formatter_sql |
|
543 | keys = generic, color_formatter, color_formatter_sql | |
@@ -549,6 +549,8 b' keys = generic, color_formatter, color_f' | |||||
549 | [logger_root] |
|
549 | [logger_root] | |
550 | level = NOTSET |
|
550 | level = NOTSET | |
551 | handlers = console |
|
551 | handlers = console | |
|
552 | # For coloring based on log level: | |||
|
553 | # handlers = console_color | |||
552 |
|
554 | |||
553 | [logger_routes] |
|
555 | [logger_routes] | |
554 | level = WARN |
|
556 | level = WARN | |
@@ -583,9 +585,12 b' qualname = gearbox' | |||||
583 |
|
585 | |||
584 | [logger_sqlalchemy] |
|
586 | [logger_sqlalchemy] | |
585 | level = WARN |
|
587 | level = WARN | |
586 |
handlers = |
|
588 | handlers = | |
587 | qualname = sqlalchemy.engine |
|
589 | qualname = sqlalchemy.engine | |
588 | propagate = 0 |
|
590 | # For coloring based on log level and pretty printing of SQL: | |
|
591 | # level = INFO | |||
|
592 | # handlers = console_color_sql | |||
|
593 | # propagate = 0 | |||
589 |
|
594 | |||
590 | [logger_whoosh_indexer] |
|
595 | [logger_whoosh_indexer] | |
591 | level = WARN |
|
596 | level = WARN | |
@@ -611,10 +616,21 b' class = StreamHandler' | |||||
611 | args = (sys.stderr,) |
|
616 | args = (sys.stderr,) | |
612 | formatter = generic |
|
617 | formatter = generic | |
613 |
|
618 | |||
614 |
[handler_console_ |
|
619 | [handler_console_color] | |
|
620 | # ANSI color coding based on log level | |||
615 | class = StreamHandler |
|
621 | class = StreamHandler | |
616 | args = (sys.stderr,) |
|
622 | args = (sys.stderr,) | |
617 |
formatter = |
|
623 | formatter = color_formatter | |
|
624 | ||||
|
625 | [handler_console_color_sql] | |||
|
626 | # ANSI color coding and pretty printing of SQL statements | |||
|
627 | class = StreamHandler | |||
|
628 | args = (sys.stderr,) | |||
|
629 | formatter = color_formatter_sql | |||
|
630 | ||||
|
631 | [handler_null] | |||
|
632 | class = NullHandler | |||
|
633 | args = () | |||
618 |
|
634 | |||
619 | <%text>################</%text> |
|
635 | <%text>################</%text> | |
620 | <%text>## FORMATTERS ##</%text> |
|
636 | <%text>## FORMATTERS ##</%text> |
@@ -19,11 +19,8 b' ini_files = [' | |||||
19 | 'app_instance_uuid': 'development-not-secret', |
|
19 | 'app_instance_uuid': 'development-not-secret', | |
20 | 'session.secret': 'development-not-secret', |
|
20 | 'session.secret': 'development-not-secret', | |
21 | }, |
|
21 | }, | |
22 |
'[ |
|
22 | '[logger_root]': { | |
23 |
' |
|
23 | 'handlers': 'console_color', | |
24 | }, |
|
|||
25 | '[handler_console_sql]': { |
|
|||
26 | 'formatter': 'color_formatter_sql', |
|
|||
27 | }, |
|
24 | }, | |
28 | '[logger_routes]': { |
|
25 | '[logger_routes]': { | |
29 | 'level': 'DEBUG', |
|
26 | 'level': 'DEBUG', |
General Comments 0
You need to be logged in to leave comments.
Login now