Loading ...

Magelia WebStore

  • .txt log files generated by Raw File Logger package

Raw File Logger

by: Magelia
  • New
  • Magelia Certified

Add log entries from a responsive storefront to a text file

Assistance: Magelia
License: View license
Free Add to basket
  • This package allows logging messages from a responsive storefront to a raw file.

     

    Main benefits : 
    - Add log entries to a text file

     

    What’s included ?
    - A package that adds logs to a text file

     

    What’s required ?

    responsive design template  This package requires that your storefront be based on the responsive design template available here and that the checkout page has not been modified.

     

    Note: This extension is compatible with other log extensions such as the raw file logger and WCF Store Logger

    • The default configuration of this package generates a .txt file having the current date and located at C:\tmp\yosemite\

       

      .txt log files generated by package

      • Requirements

      • Magelia WebStore (3.0+)
      • A responsive storefront based on the Magelia Responsive design template (3.0+) available here
      • Installation of the RawFileLogger package in the responsive storefront project

       

       

      Once the package has been installed, no additional configuration is required, the log entries are available in the file.

       

      If exceptions occur, a new log entry including the exception will be created in the file.

       

      You can also add your own log entries by calling the log method as shown in the example below :

       

      DependencyResolver.Current.GetService<ILogger>().Log(LogLevel.Warning, "This is a log from the responsive storefront");

       

      The log levels can be defined using one of the following values:

      Verbose / Information / Warning / Error / Important / Critical

       

      • (Optional) Set the destination folder and define filename

      • By default, the destination folder is c:\tmp\yosemite. To edit this setting, open and edit the file RawFileLoggerModule.cs that is in the App_Start > Ninject folder

        RawFileLoggerModule.cs


        Edit the path in the following line:
        this.Bind<ILoggerHandler>().ToMethod(c => new RawFileLoggerHandler(@"c:\tmp\yosemite", "MyStoreRawLogFile_"));


        Warning: be sure to define a folder that has the required read/write rights


      • By default the filename is the current date but you can add a prefix to this name by defining a value in the second parameter of the RawFileLoggerHandler constructor (in the example above, we set MyStoreRawLogFile_ as prefix).
    • Version 3.0 released May 2014
      - Initial release

  • Please correct the followings errors:

We also recommend: