summaryrefslogblamecommitdiffstats
path: root/archives/extend/2013-May/000136.html
blob: 6de9e081e0bab779487448703e3d0f87f2ec7570 (plain) (tree)































































































                                                                                                                                                                                  
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
 <HEAD>
   <TITLE> [99s-extend] &quot;access.log&quot; for Cowboy
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20%22access.log%22%20for%20Cowboy&In-Reply-To=%3C519369F9.4090008%40llaisdy.com%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <style type="text/css">
       pre {
           white-space: pre-wrap;       /* css-2.1, curent FF, Opera, Safari */
           }
   </style>
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="000135.html">
   <LINK REL="Next"  HREF="000137.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[99s-extend] &quot;access.log&quot; for Cowboy</H1>
    <B>Ivan Uemlianin</B> 
    <A HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20%22access.log%22%20for%20Cowboy&In-Reply-To=%3C519369F9.4090008%40llaisdy.com%3E"
       TITLE="[99s-extend] &quot;access.log&quot; for Cowboy">ivan at llaisdy.com
       </A><BR>
    <I>Wed May 15 12:56:57 CEST 2013</I>
    <P><UL>
        <LI>Previous message: <A HREF="000135.html">[99s-extend] Cowboy: retrieving &quot;just set&quot; cookies
</A></li>
        <LI>Next message: <A HREF="000137.html">[99s-extend] &quot;access.log&quot; for Cowboy
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#136">[ date ]</a>
              <a href="thread.html#136">[ thread ]</a>
              <a href="subject.html#136">[ subject ]</a>
              <a href="author.html#136">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>Dear All

I'm using cowboy for a restful web application, and I've set up 
on_request_hook and on_response_hook to log requests and responses.

I'm using lager for logging and at the moment the above log messages are 
just going out to the console.log file (via lager:info/2).

I'd like to have these log messages sent to a separate file, e.g., 
&quot;access.log&quot;, that contains only the request &amp; response logs.

Is anyone doing something like this now?  I think it's not an unusual 
pattern with web servers.  Can I do this with lager (i.e., send only 
messages at level X, not level X or above)?  Is there a more appropriate 
logging mechanism?

With thanks and best wishes

Ivan


-- 
============================================================
Ivan A. Uemlianin PhD
Llaisdy
Speech Technology Research and Development

                     <A HREF="https://lists.ninenines.eu/listinfo/extend">ivan at llaisdy.com</A>
                      www.llaisdy.com
                          llaisdy.wordpress.com
               github.com/llaisdy
                      www.linkedin.com/in/ivanuemlianin

                         festina lente
============================================================

</PRE>

<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="000135.html">[99s-extend] Cowboy: retrieving &quot;just set&quot; cookies
</A></li>
	<LI>Next message: <A HREF="000137.html">[99s-extend] &quot;access.log&quot; for Cowboy
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#136">[ date ]</a>
              <a href="thread.html#136">[ thread ]</a>
              <a href="subject.html#136">[ subject ]</a>
              <a href="author.html#136">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://lists.ninenines.eu/listinfo/extend">More information about the Extend
mailing list</a><br>
</body></html>