mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
refactor: Update symbol type to use lowercase 'symbol' in ColumnAccessControl files
This commit is contained in:
@@ -1,27 +1,27 @@
|
||||
// This app will log all the logs to the docker-container fluentd that's running in development.
|
||||
// This app will log all the logs to the docker-container fluentd that's running in development.
|
||||
// You can find the details of the docker container in this file: /docker-compose.dev.yml
|
||||
// This docker container is not run in production because there is no need to, customers will run fluentd on their own side in production.
|
||||
// This docker container is not run in production because there is no need to, customers will run fluentd on their own side in production.
|
||||
|
||||
const express = require('express');
|
||||
const FluentClient = require('@fluent-org/logger').FluentClient;
|
||||
const express = require("express");
|
||||
const FluentClient = require("@fluent-org/logger").FluentClient;
|
||||
const app = express();
|
||||
|
||||
// The 2nd argument can be omitted. Here is a default value for options.
|
||||
const logger = new FluentClient('fluentd.test', {
|
||||
const logger = new FluentClient("fluentd.test", {
|
||||
socket: {
|
||||
host: 'localhost',
|
||||
host: "localhost",
|
||||
port: 24224,
|
||||
timeout: 3000, // 3 seconds
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
app.get('/', function(request, response) {
|
||||
logger.emit('follow', {from: 'userA', to: 'userB'});
|
||||
response.send('Hello World!');
|
||||
app.get("/", function (request, response) {
|
||||
logger.emit("follow", { from: "userA", to: "userB" });
|
||||
response.send("Hello World!");
|
||||
});
|
||||
|
||||
const port = 7856;
|
||||
|
||||
app.listen(port, function() {
|
||||
app.listen(port, function () {
|
||||
console.log("Listening on " + port);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user