lumbridge / centralloggingservice Goto Github PK
View Code? Open in Web Editor NEWAll-in-one solution for standardised logging into a central database from distributed systems, includes a dynamic email dispatcher & web front end.
All-in-one solution for standardised logging into a central database from distributed systems, includes a dynamic email dispatcher & web front end.
Hello, I am glad I found your project here, as I have searched for some time now something like this, a central logging application with a web interface in dotnet. There are so many docker solutions out there or other languages, I was really wondering if I am blind and just search for the wrong things that something basic for central logging was not available.
Is this still beeing worked on? I read that you plan to migrate it for dotnet core.
I had some hickups that I thought I just share here if it helps:
In general the route for Register for example with /api/ was not working, I removed /api/ for most calls currently.
Saving new Alerts did not write the SubscriptionId into the Database for AlertGroups, I just did a workaround for now like this:
var newSub = _uow.Repository<Subscription>().Put(new Subscription
{
UserId = userId,
AlertTriggerGroup = new AlertTriggerGroup
{
UserId = userId,
AlertTriggerNodes = nodeList
},
AlertTypeId = alertTypeId,
IsActive = true,
DateTimeEnabled = DateTime.Now
});
try
{
_uow.Commit();
}
catch (Exception ex)
{
_ls.Log(StaticData.SeverityType.Error, ex);
return Json(new { success = false, message = "Failed to save alert." }, JsonRequestBehavior.AllowGet);
}
newSub.AlertTriggerGroup.SubscriptionId = newSub.Id;
try
{
_uow.Commit();
}
catch (Exception ex)
{
_ls.Log(StaticData.SeverityType.Error, ex);
return Json(new { success = false, message = "Failed to save alert." }, JsonRequestBehavior.AllowGet);
}
In Processor.cs I added just some null checks:
uow.Repository<AlertTriggerGroup>().Where(x => x != null && x.Subscription != null && x.Subscription.IsActive && !x.Subscription.IsDeleted).ToList();
To be able to register a user I modified UnityConfig.cs (unsure if all is needed)
public static void RegisterTypes(IUnityContainer container)
{
container.RegisterInstance(new DBEntities());
container.RegisterType(typeof(IRepository<>), typeof(Repository<>));
container.RegisterType<IUnitOfWork, UnitOfWork>();
container.RegisterType<IEntities, DBEntities>();
container.RegisterType<IController, Controller>();
container.RegisterType<Controllers.AccountController>(new InjectionConstructor());
container.Resolve<IUnitOfWork>();
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.