-
Notifications
You must be signed in to change notification settings - Fork 368
/
LogEvents.cs
27 lines (25 loc) · 949 Bytes
/
LogEvents.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using Microsoft.DotNet.Interactive.CSharp;
using Microsoft.DotNet.Interactive.Events;
using Microsoft.DotNet.Interactive.FSharp;
using Microsoft.DotNet.Interactive.Jupyter;
using Xunit.Abstractions;
namespace Pocket
{
internal partial class LogEvents
{
public static IDisposable SubscribeToPocketLogger(this ITestOutputHelper output) =>
Subscribe(
e => output.WriteLine(e.ToLogString()),
new[]
{
typeof(LogEvents).Assembly,
typeof(KernelEvent).Assembly,
typeof(CSharpKernel).Assembly,
typeof(FSharpKernel).Assembly,
typeof(ExecuteRequestHandler).Assembly,
});
}
}