Skip to content

Instantly share code, notes, and snippets.

View grishin's full-sized avatar

Andrey Grishin grishin

  • Tiburon Research
  • Russia, Moscow
View GitHub Profile
@gravity00
gravity00 / NLog.config
Created May 29, 2016 22:06
Console Application using NLog as the logging framework
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd NLog.xsd"
autoReload="true"
throwExceptions="false"
internalLogLevel="Off" internalLogFile="C:\Windows\Temp\ConsoleApplication\nlog-internal.log" >
<time type="FastUTC" />
<targets>
<target name="file" xsi:type="File"
@raddeus
raddeus / app.js
Last active February 4, 2025 09:42
Basic Express 4.0 Setup with connect-flash
var express = require('express');
var session = require('express-session');
var cookieParser = require('cookie-parser');
var flash = require('connect-flash');
var app = express();
app.use(cookieParser('secret'));
app.use(session({cookie: { maxAge: 60000 }}));
app.use(flash());
@Chrisso
Chrisso / App.config
Created January 30, 2012 09:57
Simple NLOG App.config
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog"/>
</configSections>
<nlog>
<targets>
<target name="console" type="Console" layout="${message}" />
<target name="debugger" type="Debugger" layout="${message}"/>
</targets>