profile
viewpoint

Delgan/loguru 7580

Python logging made (stupidly) simple

Austriker/py-faster-rcnn 12

Faster R-CNN (Python 2 & 3 implementation with an up-to-date Caffe version)

Delgan/better-exceptions 3

Pretty and useful exceptions in Python, automatically.

Delgan/notifiers 3

The easy way to send notifications

Delgan/pendulum 1

Python datetimes made easy

Delgan/stackprinter 1

Debugging-friendly exceptions for Python

Delgan/aiocontextvars 0

Asyncio support for PEP-567 contextvars backport.

Delgan/bittorrent-webui 0

Automatically exported from code.google.com/p/bittorrent-webui

Delgan/cheerio 0

Fast, flexible, and lean implementation of core jQuery designed specifically for the server.

startedDelgan/loguru

started time in 2 hours

startedDelgan/loguru

started time in 4 hours

issue openedDelgan/loguru

Logger from config file?

Hello, I started using loguru not too long ago, so I might be missing some crucial information.

I am looking for a way to replace logging.fileConfig with loguru.configure, but I have read in the docs that the Logger.configure method does not accept config.ini files, so I guess that the user has to explicitly define a custom configuration schema and factory that handles the creation of Logger objects from configuration files.

Is there any way to avoid that?

created time in 5 hours

issue commentletsar/binder

Uppercase LogicRef when using vscode extension

There is something odd with vscode snippets and capitalization. If you type lref, then the prefix of the reference (with camelCase) and then press TAB, the ref should be in camelCase and the name of the class should be rightly capitalized. Like in this gif: lref snippet

chimon2000

comment created time in 7 hours

fork wansiedler/loguru

Python logging made (stupidly) simple

fork in 8 hours

startedDelgan/loguru

started time in 10 hours

issue closedQix-/better-exceptions

TERM setting of tmux-256color vs screen…

I run tmux 3.1 and have set a few TERM: with export TERM=tmux-256color, I get no colour support in traces, whereas with TERM=screen I get all the nifty colours.

Here is screenshot:

screenshot

closed time in 11 hours

kierun

issue commentQix-/better-exceptions

TERM setting of tmux-256color vs screen…

export TERM=tmux works fine as a work around. The terminal setting appears to support 256 colours. Meh, not ideal but it works…

kierun

comment created time in 11 hours

startedDelgan/loguru

started time in 13 hours

startedDelgan/loguru

started time in 13 hours

issue openedletsar/binder

Uppercase LogicRef when using vscode extension

When using the Logic snippet I noticed that the refs are capitalized. Take the following example.

// Should be counterViewLogicRef
final CounterViewLogicRef = LogicRef((scope) => CounterViewLogic(scope));

It may be better to have the first tab be for the ref variable and the second to be for the class name.

created time in 14 hours

startedDelgan/loguru

started time in 15 hours

startedDelgan/loguru

started time in 16 hours

startedDelgan/loguru

started time in 18 hours

startedDelgan/loguru

started time in 21 hours

issue commentletsar/binder

Architecture example failing to run

Great :-). I should put this in the readme ;-)

if you want I can do maybe a detailed readme and submit a PR?

singhmitesh

comment created time in a day

issue commentletsar/binder

Architecture example failing to run

Great :-). I should put this in the readme ;-)

singhmitesh

comment created time in a day

issue commentletsar/binder

Architecture example failing to run

Works. Thank you :+1:

singhmitesh

comment created time in a day

issue commentletsar/binder

Architecture example failing to run

trying it right away :sweat_smile:

singhmitesh

comment created time in a day

issue closedletsar/binder

Architecture example failing to run

flutter run

lib/data/entities/user.dart:4:6: Error: Error when reading 'lib/data/entities/user.freezed.dart': No such file or directory
part 'user.freezed.dart';                                               
     ^                                                                  
lib/data/entities/user.dart:5:6: Error: Error when reading 'lib/data/entities/user.g.dart': No such file or directory
part 'user.g.dart';                                                     
     ^                                                                  
lib/data/entities/user.dart:4:6: Error: Can't use 'lib/data/entities/user.freezed.dart' as a part, because it has no 'part of' declaration.
part 'user.freezed.dart';                                               
     ^                                                                  
lib/data/entities/user.dart:5:6: Error: Can't use 'lib/data/entities/user.g.dart' as a part, because it has no 'part of' declaration.
part 'user.g.dart';                                                     
     ^                                                                  
lib/data/entities/user.dart:8:26: Error: Type '_$User' not found.       
abstract class User with _$User {                                       
                         ^^^^^^                                         
lib/data/entities/user.dart:8:16: Error: The type '_$User' can't be mixed in.
abstract class User with _$User {                                       
               ^                                                        
lib/data/entities/user.dart:16:8: Error: Couldn't find constructor '_User'.
  }) = _User;                                                           
       ^                                                                
lib/data/entities/user.dart:16:8: Error: Redirection constructor target not found: '_User'
  }) = _User;                                                           
       ^                                                                
lib/modules/home/view.dart:76:69: Error: The getter 'name' isn't defined for the class 'User'.
 - 'User' is from 'package:architecture/data/entities/user.dart' ('lib/data/entities/user.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'name'.
    final name = context.watch(currentUserRef.select((user) => user.name));
                                                                    ^^^^
lib/modules/user/view.dart:25:69: Error: The getter 'name' isn't defined for the class 'User'.
 - 'User' is from 'package:architecture/data/entities/user.dart' ('lib/data/entities/user.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'name'.
    final name = context.watch(currentUserRef.select((user) => user.name));
                                                                    ^^^^
lib/data/entities/user.dart:18:55: Error: Method not found: '_$UserFromJson'.
  factory User.fromJson(Map<String, dynamic> json) => _$UserFromJson(json);
                                                      ^^^^^^^^^^^^^^    
lib/data/sources/api_client.dart:42:52: Error: The method 'toJson' isn't defined for the class 'User'.
 - 'User' is from 'package:architecture/data/entities/user.dart' ('lib/data/entities/user.dart').
Try correcting the name to the name of an existing method, or defining a method named 'toJson'.
  Map<String, dynamic> encode(User value) => value.toJson();            
                                                   ^^^^^^               
                                                                        
                                                                        
FAILURE: Build failed with an exception.                                
                                                                        
* Where:                                                                
Script '/home/mitesh/fvm/versions/stable/packages/flutter_tools/gradle/flutter.gradle' line: 904
                                                                        
* What went wrong:                                                      
Execution failed for task ':app:compileFlutterBuildDebug'.              
> Process 'command '/home/mitesh/fvm/versions/stable/bin/flutter'' finished with non-zero exit value 1
                                                                        
* Try:                                                                  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
                                                                        
* Get more help at https://help.gradle.org                              
                                                                        
BUILD FAILED in 23s                                                     
Running Gradle task 'assembleDebug'...                                  
Running Gradle task 'assembleDebug'... Done                        23.8s
Exception: Gradle task assembleDebug failed with exit code 1

closed time in a day

singhmitesh

issue commentletsar/binder

Architecture example failing to run

Hi @singhmitesh, oh I see, you need to run this command before running flutter run:

flutter pub run build_runner build

After that everything should be ok.

singhmitesh

comment created time in a day

issue commentQix-/better-exceptions

TERM setting of tmux-256color vs screen…

@ygworldr https://blog.sindresorhus.com/issue-bumping-e3b9740e2a0

kierun

comment created time in a day

PR closed Delgan/loguru

Added custom serialize methods

Whenever you specify a callable as "serialize" option to logger, it will use it as serializer instead of json.dumps().

This can be used to add more "extreme" custom formats such as SPLUNK's. A simple CSV logger has been added as test.

Relates to #372

+50 -4

0 comment

3 changed files

XayOn

pr closed time in a day

issue commentQix-/better-exceptions

TERM setting of tmux-256color vs screen…

Any update on this?

kierun

comment created time in a day

startedDelgan/loguru

started time in a day

pull request commenttartley/colorama

Guard against multiple calls to init().

Thanks a lot for responding! In my current project I had to resort to some inelegant monkey-patching which I will be more than happy to discard :-)

tartley

comment created time in a day

startedDelgan/loguru

started time in a day

startedDelgan/loguru

started time in 2 days

startedDelgan/loguru

started time in 2 days

startedDelgan/loguru

started time in 2 days

more