通过网络共享日志的最佳方式? [英] Best way to have a shared log over a network?

查看:65
本文介绍了通过网络共享日志的最佳方式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试找到在VB.net中通过网络创建和管理共享日志的最佳方法。



不同PC上的用户必须能够更改与文件夹中文件状态相关的复选框,并且所有用户都必须查看所有更改。



换句话说,不同电脑上的5个人都将他们的应用程序放在同一个文件夹中。如果一个人决定将文件标记为已选中,则其他人会立即看到该文件(反之亦然)。



如果我的解释不是'我很抱歉'理想但如果有人能提出任何建议我会非常感激。



非常感谢。

解决方案

< blockquote>这与日志/日志记录有什么关系?无论如何,共享此类数据的最简单方法是使用数据库引擎。没有必要像SQL Server这样繁重的操作 - Firebird会这样做,特别是它实现事件模型,因此您可以通知用户有关更改的信息。另一种方法是使用共享文件夹(我的意思是SAMBA,Windows共享)并使用 FileSystemWatcher [ ^ ]在客户端监视同一个文件夹。如果客户端处于完全不同的网络中,则无法使用。


I am trying to find the best way to create and manage a shared log over a network in VB.net.

Users on different PCs must be able to change checkboxes related to the status of files within a folder and all users must see all changes.

In other words, say 5 people on different PCs all have their applications looking into the same folder. If one individual decides to mark a file as checked, then this will immediately be visible to others (and vice versa).

I'm sorry if my explanation isn't ideal but if anyone can offer any suggestions I'd be very grateful.

Many thanks.

解决方案

What has this to do with logs/logging? Anyway, the simplest method of sharing such data is using a database engine. Not necessary a heavy one like SQL Server - Firebird would do it, aspecially as it implements event model, so you can notify users about changes. An other approach woud be using share folder (i mean SAMBA, windows sharing) and using FileSystemWatcher[^] in the clients to monitor the same folder. This won't work if the clients are in totally different networks.


这篇关于通过网络共享日志的最佳方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆