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