### ----------------------------------------------------
### -- Log::Async
### -- Licenses: Artistic-1.0-Perl
### -- Authors: Brian Duggan
### -- File: t/16-imports2.rakutest
### ----------------------------------------------------
#!/usr/bin/env raku

use Test;

use lib 'lib';
use Test;

plan 1;

my $args;

BEGIN {
  use Log::Async;

  Log::Async.^find_method('add-tap').wrap: -> \s, |q {
    $args = q;
    callsame;
  }
}

#use Log::Async <color info>;
#ok $args<level>(INFO), 'level info will be logged';
#nok $args<level>(DEBUG), 'level debug will not be logged';

my @*ARGS = '--level=trace';
use Log::Async "use-args";
ok $args<level>(TRACE), 'trace will be logged';


