Skip to content

Commit ffdf6c9

Browse files
committed
update plugins
1 parent 2142ef9 commit ffdf6c9

35 files changed

Lines changed: 2883 additions & 262 deletions

src/AutoColumnizer/AutoColumnizer.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,10 @@
1010
<ProjectReference Include="..\ColumnizerLib\ColumnizerLib.csproj" />
1111
</ItemGroup>
1212

13+
<ItemGroup>
14+
<None Update="AutoColumnizer.manifest.json">
15+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
16+
</None>
17+
</ItemGroup>
18+
1319
</Project>

src/AutoColumnizer/AutoColumnizer.manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"description": "Automatically detects and applies the appropriate columnizer for any log file format",
66
"apiVersion": "1.0",
77
"requires": {
8-
"logExpert": ">=1.10.0",
9-
"dotnet": ">=8.0"
8+
"logExpert": ">=1.20.0",
9+
"dotnet": "10.0"
1010
},
1111
"permissions": [
1212
"filesystem:read",
Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Globalization;
4-
using System.Text;
5-
61
namespace LogExpert;
72

83
/// <summary>
@@ -17,29 +12,35 @@ public interface ILogExpertLogger
1712
/// The logger in LogExpert will automatically add the class and the method name of the caller.
1813
/// </summary>
1914
/// <param name="msg">A message to be logged.</param>
20-
void Info(string msg);
15+
void Info (string msg);
16+
17+
/// <summary>
18+
/// Writes an informational message using the specified format provider.
19+
/// </summary>
20+
/// <param name="formatProvider">An object that supplies culture-specific formatting information for the message. Cannot be null.</param>
21+
/// <param name="msg">The informational message to write. Cannot be null.</param>
2122
void Info (IFormatProvider formatProvider, string msg);
2223

2324
/// <summary>
2425
/// Logs a message on DEBUG level to LogExpert#s log file. The logfile is only active in debug builds.
2526
/// The logger in LogExpert will automatically add the class and the method name of the caller.
2627
/// </summary>
2728
/// <param name="msg">A message to be logged.</param>
28-
void Debug(string msg);
29+
void Debug (string msg);
2930

3031
/// <summary>
3132
/// Logs a message on WARN level to LogExpert#s log file. The logfile is only active in debug builds.
3233
/// The logger in LogExpert will automatically add the class and the method name of the caller.
3334
/// </summary>
3435
/// <param name="msg">A message to be logged.</param>
35-
void LogWarn(string msg);
36+
void LogWarn (string msg);
3637

3738
/// <summary>
3839
/// Logs a message on ERROR level to LogExpert#s log file. The logfile is only active in debug builds.
3940
/// The logger in LogExpert will automatically add the class and the method name of the caller.
4041
/// </summary>
4142
/// <param name="msg">A message to be logged.</param>
42-
void LogError(string msg);
43+
void LogError (string msg);
4344

4445
#endregion
4546
}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
namespace LogExpert;
2+
3+
/// <summary>
4+
/// Defines lifecycle events for plugins.
5+
/// Plugins can optionally implement this interface to receive lifecycle notifications.
6+
/// </summary>
7+
public interface IPluginLifecycle
8+
{
9+
/// <summary>
10+
/// Called when the plugin is first loaded.
11+
/// Use this to initialize resources, load configuration, etc.
12+
/// </summary>
13+
/// <param name="context">Context providing information about the host environment</param>
14+
void Initialize(IPluginContext context);
15+
16+
/// <summary>
17+
/// Called when the application is shutting down.
18+
/// Use this to cleanup resources, save state, etc.
19+
/// </summary>
20+
void Shutdown();
21+
22+
/// <summary>
23+
/// Called when the plugin should reload its configuration.
24+
/// Use this to refresh settings without restarting the application.
25+
/// </summary>
26+
void Reload();
27+
}
28+
29+
/// <summary>
30+
/// Provides context information to plugins during initialization.
31+
/// </summary>
32+
public interface IPluginContext
33+
{
34+
/// <summary>
35+
/// Logger for the plugin to use for diagnostic output.
36+
/// </summary>
37+
ILogExpertLogger Logger { get; }
38+
39+
/// <summary>
40+
/// Directory where the plugin assembly is located.
41+
/// </summary>
42+
string PluginDirectory { get; }
43+
44+
/// <summary>
45+
/// Version of the host application (LogExpert).
46+
/// </summary>
47+
Version HostVersion { get; }
48+
49+
/// <summary>
50+
/// Directory where the plugin can store configuration files.
51+
/// Typically %APPDATA%\LogExpert\Plugins\{PluginName}\
52+
/// </summary>
53+
string ConfigurationDirectory { get; }
54+
}

src/CsvColumnizer/CsvColumnizer.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,10 @@
3939
</Compile>
4040
</ItemGroup>
4141

42+
<ItemGroup>
43+
<None Update="CsvColumnizer.manifest.json">
44+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
45+
</None>
46+
</ItemGroup>
47+
4248
</Project>

src/GlassfishColumnizer/GlassfishColumnizer.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,10 @@
1111
<ProjectReference Include="..\ColumnizerLib\ColumnizerLib.csproj" />
1212
</ItemGroup>
1313

14+
<ItemGroup>
15+
<None Update="GlassfishColumnizer.manifest.json">
16+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
17+
</None>
18+
</ItemGroup>
19+
1420
</Project>

src/JsonColumnizer/JsonColumnizer.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,10 @@
1414
<PackageReference Include="Newtonsoft.Json" />
1515
</ItemGroup>
1616

17+
<ItemGroup>
18+
<None Update="JsonColumnizer.manifest.json">
19+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
20+
</None>
21+
</ItemGroup>
22+
1723
</Project>

src/JsonCompactColumnizer/JsonCompactColumnizer.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,10 @@
1515
<ProjectReference Include="..\ColumnizerLib\ColumnizerLib.csproj" />
1616
<ProjectReference Include="..\JsonColumnizer\JsonColumnizer.csproj" />
1717
</ItemGroup>
18+
19+
<ItemGroup>
20+
<None Update="JsonCompactColumnizer.manifest.json">
21+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
22+
</None>
23+
</ItemGroup>
1824
</Project>

src/Log4jXmlColumnizer/Log4jXmlColumnizer.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,10 @@
3939
<DependentUpon>Resources.resx</DependentUpon>
4040
</Compile>
4141
</ItemGroup>
42+
43+
<ItemGroup>
44+
<None Update="Log4jXmlColumnizer.manifest.json">
45+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
46+
</None>
47+
</ItemGroup>
4248
</Project>

0 commit comments

Comments
 (0)